Skip to content

Commit

Permalink
child_process: remove empty if condition
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cjihrig authored and addaleax committed Feb 22, 2017
1 parent f55c628 commit 0240eb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
stderr = Buffer.concat(_stderr);
}

if (ex) {
// Will be handled later
} else if (code === 0 && signal === null) {
if (!ex && code === 0 && signal === null) {
callback(null, stdout, stderr);
return;
}
Expand Down

0 comments on commit 0240eb9

Please sign in to comment.