refactor(console) getSpawn

This commit is contained in:
coderaiser 2014-05-20 09:37:00 -04:00
parent 02b326cdd1
commit d3fc54b24d

View file

@ -204,7 +204,6 @@
function getSpawn(сommand, options, callback) {
var cmd, error,
addNewLine = CloudFunc.addNewLine,
args = сommand.split(' '),
send = function(error, data) {
var exec = {
@ -215,7 +214,7 @@
Util.exec(callback, exec);
},
sendError = function(error) {
var errorStr = addNewLine(error + '');
var errorStr = CloudFunc.addNewLine(error + '');
Util.log(error);
send(errorStr, null);