From ed11b01234c2cefb9be74a6d39f5520a634613f1 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Fri, 27 Jul 2018 11:12:06 -0400 Subject: [PATCH] Fix lint issues in shell.js --- src/shell/shell.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shell/shell.js b/src/shell/shell.js index 89a895c..97de86b 100644 --- a/src/shell/shell.js +++ b/src/shell/shell.js @@ -2,7 +2,6 @@ var Path = require('../path.js'); var Errors = require('../errors.js'); var Environment = require('./environment.js'); var async = require('../../lib/async.js'); -var Encoding = require('../encoding.js'); var minimatch = require('minimatch'); function Shell(fs, options) { @@ -131,7 +130,7 @@ Shell.prototype.touch = function(path, options, callback) { fs.utimes(path, atime, mtime, callback); } - fs.stat(path, function(error, stats) { + fs.stat(path, function(error) { if(error) { if(options.updateOnly === true) { callback(); @@ -348,7 +347,7 @@ Shell.prototype.tempDir = function(callback) { // Try and create it, and it will either work or fail // but either way it's now there. - fs.mkdir(tmp, function(err) { + fs.mkdir(tmp, function() { callback(null, tmp); }); };