From 2e989b502abf8e12c67a44283f084979447f01fe Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 2 Feb 2015 14:08:35 -0800 Subject: [PATCH] Remove unneeded try/catch --- src/6to5.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/6to5.coffee b/src/6to5.coffee index d51b513d5..45b966106 100644 --- a/src/6to5.coffee +++ b/src/6to5.coffee @@ -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)