Skip to content

Commit f5d9202

Browse files
cjihrigjasnell
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 <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>
1 parent cb9b7bf commit f5d9202

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)