Skip to content

Commit a07c01c

Browse files
committedApr 11, 2016
Move result outside of try block scope
later lines need access to it
1 parent 4bcfec3 commit a07c01c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ module.exports = function(S) {
255255

256256
S.utils.sDebug(`Minifying bundled file ${optimizedFile}`);
257257

258+
let result;
259+
258260
try {
259-
let result = UglifyJS.minify(optimizedFile, uglyOptions);
261+
result = UglifyJS.minify(optimizedFile, uglyOptions);
260262
} catch (e) {
261263
console.error(`Error uglifying ${optimizedFile}`);
262264
console.error(e);

0 commit comments

Comments
 (0)
Please sign in to comment.