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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
  • Loading branch information
cjihrig authored and MylesBorins committed Mar 9, 2017
1 parent 8da156d commit 818cef8
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 @@ -191,9 +191,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 818cef8

Please sign in to comment.