Skip to content

Commit

Permalink
Declare variables so they don't end up globals
Browse files Browse the repository at this point in the history
`scaler` and `fitter` variables were never declared.
  • Loading branch information
Nathan-Wall committed Sep 16, 2016
1 parent 7b12b30 commit e021775
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node-netpbm.js
Expand Up @@ -158,6 +158,7 @@ module.exports.convert = function(fileIn, fileOut, options, callback)
return;
}

var scaler, fitter;
if (options.alpha) {
scaler = 'pamscale ';
fitter = '-xyfit ';
Expand Down

0 comments on commit e021775

Please sign in to comment.