Remove cruft that dealt with env parameter

Originally added in commit 078a48a9, this code dealt with an optional
env parameter that was passed to `exec`.  The parameter was removed, but
this code was left.  As it serves no purpose, removing it.
v0.7.4-release
Travis Swicegood 2010-11-29 11:39:13 -06:00 committed by Ryan Dahl
parent 1dbbaa7fa0
commit e514f575f3
1 changed files with 1 additions and 3 deletions

View File

@ -14,10 +14,8 @@ var spawn = exports.spawn = function (path, args /*, options OR env, customFds *
exports.exec = function (command /*, options, callback */) {
if (arguments.length < 3) {
return exports.execFile("/bin/sh", ["-c", command], arguments[1]);
} else if (arguments.length < 4) {
return exports.execFile("/bin/sh", ["-c", command], arguments[1], arguments[2]);
} else {
return exports.execFile("/bin/sh", ["-c", command], arguments[1], arguments[2], arguments[3]);
return exports.execFile("/bin/sh", ["-c", command], arguments[1], arguments[2]);
}
};