From 415ed01c0c02ae5d3f1b9983da9ff4be5e738dbd Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 10 Apr 2014 09:38:03 -0400 Subject: [PATCH] chore(console) rm unused vars --- lib/server/console.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/server/console.js b/lib/server/console.js index 7954435a..323cf70e 100644 --- a/lib/server/console.js +++ b/lib/server/console.js @@ -3,7 +3,6 @@ var main = global.cloudcmd.main, DIR = main.DIR, - SRVDIR = main.SRVDIR, socket = main.socket, update = main.srvrequire('update'), @@ -111,8 +110,7 @@ function getOnMessage(pConnNum, callback) { return function(pCommand) { var lWinCommand, lExec_func, firstChar, - connName, - lError, lRet, lExecSymbols, isContain, + connName, lRet, lExecSymbols, isContain, dir, options = {}; dir = ClientDirs[pConnNum]; @@ -188,7 +186,7 @@ */ function getExec(callback) { return function(pError, pStdout, pStderr) { - var lErrorStr, lExecStr, lExec, + var lErrorStr, lExec, lError = pStderr || pError; if (lError) { @@ -239,7 +237,7 @@ }); cmd.on('error', Util.retFalse); - cmd.on('close', function (code) { + cmd.on('close', function () { cmd = null; }); } @@ -284,8 +282,7 @@ dir = path.join(currDir, paramDir); exec('cd ' + dir + ' && ' + getDir, function (error, stdout, stderr) { - var lRet, - lMsg = '', + var lMsg = '', lError = error || stderr; if (lError) {