Skip to content

Commit 4676eec

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 <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 2b867d2 commit 4676eec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/child_process.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
187187
stderr = Buffer.concat(_stderr);
188188
}
189189

190-
if (ex) {
191-
// Will be handled later
192-
} else if (code === 0 && signal === null) {
190+
if (!ex && code === 0 && signal === null) {
193191
callback(null, stdout, stderr);
194192
return;
195193
}

0 commit comments

Comments
 (0)