From 39f8e30e497f08b5e99259c6bc991c5a87f2f5cc Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Fri, 16 Nov 2018 23:47:16 +0100 Subject: [PATCH] Fix lint --- lib/OptiPng.js | 2 +- test/OptiPng.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/OptiPng.js b/lib/OptiPng.js index 69ab723..8488033 100644 --- a/lib/OptiPng.js +++ b/lib/OptiPng.js @@ -47,7 +47,7 @@ class OptiPng extends Duplex { this.write(chunk); // any final bits } - if ( !this.writeStream ) { + if (!this.writeStream) { this._error(new Error('Closing stream before writing data.')); } diff --git a/test/OptiPng.js b/test/OptiPng.js index 02e6c7b..dcac25e 100644 --- a/test/OptiPng.js +++ b/test/OptiPng.js @@ -9,8 +9,7 @@ const Path = require('path'); const fs = require('fs'); describe('OptiPng', () => { - - it('should end the stream even if it hasnt written to it yet', function (done) { + it('should end the stream even if it hasnt written to it yet', function(done) { var optiPng = new OptiPng(['-o7']); optiPng.on('error', e => {