From 651902b243f8de5b5e4142703cdbf2717a209315 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 8 Jul 2014 10:14:49 -0400 Subject: [PATCH] chore(console) setExec: rm " " --- lib/server/console.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/server/console.js b/lib/server/console.js index 6eb65aea..fcd64076 100644 --- a/lib/server/console.js +++ b/lib/server/console.js @@ -166,18 +166,18 @@ * @param callback */ function setExec(callback, error, stdout, stderr) { - var json, - errorStr = stderr || error; - - if (errorStr) - errorStr = addNewLine(errorStr + ''); - - json = { - stdout : stdout, - stderr : errorStr - }; - - Util.exec(callback, json, error, stderr); + var json, + errorStr = stderr || error; + + if (errorStr) + errorStr = addNewLine(errorStr + ''); + + json = { + stdout : stdout, + stderr : errorStr + }; + + Util.exec(callback, json, error, stderr); } function setSpawn(сommand, options, callback) {