Skip to content

Commit

Permalink
eslint --fix .
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 5, 2019
1 parent 3d5d4f0 commit 247e0c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/PngQuant.js
@@ -1,4 +1,4 @@
/*jshint node: true */
/* jshint node: true */
const childProcess = require('child_process');
const Stream = require('stream').Stream;
const util = require('util');
Expand Down Expand Up @@ -89,7 +89,7 @@ PngQuant.prototype.write = function(chunk) {
}
this.commandLine =
pngCrushBinaryPath +
(this.pngQuantArgs ? ' ' + this.pngQuantArgs.join(' ') : ''); // For debugging
(this.pngQuantArgs ? ` ${ this.pngQuantArgs.join(' ')}` : ''); // For debugging
this.pngQuantProcess = childProcess.spawn(
pngCrushBinaryPath,
this.pngQuantArgs
Expand All @@ -102,7 +102,7 @@ PngQuant.prototype.write = function(chunk) {
if (!this.hasEnded) {
this._error(
new Error(
'Saw pngquant output on stderr: ' + data.toString('ascii')
`Saw pngquant output on stderr: ${ data.toString('ascii')}`
)
);
this.hasEnded = true;
Expand All @@ -116,8 +116,8 @@ PngQuant.prototype.write = function(chunk) {
if (exitCode > 0 && !this.hasEnded) {
this._error(
new Error(
'The pngquant process exited with a non-zero exit code: ' +
exitCode
`The pngquant process exited with a non-zero exit code: ${
exitCode}`
)
);
this.hasEnded = true;
Expand Down
2 changes: 1 addition & 1 deletion test/PngQuant.js
@@ -1,4 +1,4 @@
/*global describe, it, beforeEach, afterEach, setTimeout, __dirname*/
/* global describe, it, beforeEach, afterEach, setTimeout, __dirname */
const expect = require('unexpected')
.clone()
.use(require('unexpected-stream'))
Expand Down

0 comments on commit 247e0c2

Please sign in to comment.