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 targos committed Feb 18, 2017
1 parent 8629b33 commit a1c652a
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 @@ -216,9 +216,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 a1c652a

Please sign in to comment.