mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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.
This commit is contained in:
1 parent
1dbbaa7fa0
commit
e514f575f3
1 file changed
+1
-3
@@ -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]);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user