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 jasnell committed Mar 7, 2017
1 parent 6316e53 commit ab982e7
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 @@ -187,9 +187,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 ab982e7

Please sign in to comment.