Skip to content

Commit 818cef8

Browse files
cjihrigMylesBorins
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 8da156d commit 818cef8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/child_process.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
191191
stderr = Buffer.concat(_stderr);
192192
}
193193

194-
if (ex) {
195-
// Will be handled later
196-
} else if (code === 0 && signal === null) {
194+
if (!ex && code === 0 && signal === null) {
197195
callback(null, stdout, stderr);
198196
return;
199197
}

0 commit comments

Comments
 (0)