From e514f575f3461fb7d0d3c16918e36fbf83166f15 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Mon, 29 Nov 2010 11:39:13 -0600 Subject: [PATCH] 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. --- lib/child_process.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 0daa50c7ae..7dc46289eb 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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]); } };