mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Remove unneeded try/catch
This commit is contained in:
@@ -113,11 +113,8 @@ createOptions = (filePath) ->
|
||||
|
||||
transpile = (sourceCode, filePath, cachePath) ->
|
||||
options = createOptions(filePath)
|
||||
try
|
||||
js = to5.transform(sourceCode, options).code
|
||||
stats.misses++
|
||||
catch error
|
||||
throw error
|
||||
js = to5.transform(sourceCode, options).code
|
||||
stats.misses++
|
||||
|
||||
try
|
||||
fs.writeFileSync(cachePath, js)
|
||||
|
||||
Reference in New Issue
Block a user