Skip to content

Commit

Permalink
JSHint: Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Oct 5, 2017
1 parent 6c5f1dc commit 702ab74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module.exports = function(paper) {
exportImage: function(path, callback) {
this.update();
var out = fs.createWriteStream(path),
format = /\.jp(e?)g$/.test(path) ? 'jpeg' : 'png'
format = /\.jp(e?)g$/.test(path) ? 'jpeg' : 'png',
stream = this._element[format + 'Stream']();
stream.pipe(out);
if (callback) {
Expand Down

0 comments on commit 702ab74

Please sign in to comment.