JSHint: Fix error

This commit is contained in:
Jürg Lehni 2017-10-05 12:09:07 +02:00
parent 6c5f1dc671
commit 702ab748a2

View file

@ -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) {