Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 16, 2018
1 parent dfee453 commit 39f8e30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/OptiPng.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));
}

Expand Down
3 changes: 1 addition & 2 deletions test/OptiPng.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 39f8e30

Please sign in to comment.