Skip to content

Commit 0240eb9

Browse files
cjihrigaddaleax
authored andcommitted
child_process: remove empty if condition
This commit replaces an empty if-else-if with a single if condition. PR-URL: #11427 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent f55c628 commit 0240eb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/child_process.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
196196
stderr = Buffer.concat(_stderr);
197197
}
198198

199-
if (ex) {
200-
// Will be handled later
201-
} else if (code === 0 && signal === null) {
199+
if (!ex && code === 0 && signal === null) {
202200
callback(null, stdout, stderr);
203201
return;
204202
}

0 commit comments

Comments
 (0)