diff --git a/node_modules/vfs-child/parent.js b/node_modules/vfs-child/parent.js index f98d320c..2c1dc7a9 100644 --- a/node_modules/vfs-child/parent.js +++ b/node_modules/vfs-child/parent.js @@ -26,7 +26,6 @@ function Parent(fsOptions) { function connect(callback) { var _self = this; try { - // Check if file exists first; spawn's ENOENT may arrive after other errors if (!fs.existsSync(nodeBin[0])) return tryNext(new Error("Couldn't find valid node binary")); child = spawn(nodeBin[0], args, options).on("error", tryNext); @@ -54,12 +53,7 @@ function Parent(fsOptions) { child.removeListener("error", done); child.on("error", function ignore(err) {}); child = null; - - if (err && err.code == "ENOENT") { - tryNext(err); - } else { - callback(err, vfs); - } + callback(err, vfs); } }