From 702ab748a2908e4a7982a850770a3a37405f3f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 5 Oct 2017 12:09:07 +0200 Subject: [PATCH] JSHint: Fix error --- src/node/extend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/extend.js b/src/node/extend.js index 6239b483..d2e1ef66 100644 --- a/src/node/extend.js +++ b/src/node/extend.js @@ -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) {