Skip to content

Commit

Permalink
Default options to {} to avoid an exception when it's not passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
marekventur committed May 8, 2016
1 parent 173c7e6 commit eb4c17b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/engine.js
Expand Up @@ -14,6 +14,7 @@ try {

// Define our engine constructor
function Gmsmith(options) {
options = options || {};
this.gm = _gm;
var useImageMagick = options.hasOwnProperty('imagemagick') ? options.imagemagick : !gmExists;
if (useImageMagick) {
Expand Down

0 comments on commit eb4c17b

Please sign in to comment.