Skip to content

Commit

Permalink
Use const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 16, 2018
1 parent 99d3d78 commit 94b0ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OptiPng.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class OptiPng extends Duplex {
// prebind for easy drop-in
const bailOut = this._error.bind(this);

var runBinary = function runBinary(err, binary) {
const runBinary = function runBinary(err, binary) {
if (err) {
bailOut(err);
}
Expand All @@ -77,7 +77,7 @@ class OptiPng extends Duplex {
this.optiPngProcess.once('exit', onBinComplete);
}.bind(this);

var onBinComplete = function onBinComplete(exitCode) {
const onBinComplete = function onBinComplete(exitCode) {
this.optiPngProcess = null;
if (this.hasEnded) {
return;
Expand Down

0 comments on commit 94b0ba1

Please sign in to comment.