Browse Source

child_process: remove empty if condition

This commit replaces an empty if-else-if with a single if
condition.

PR-URL: https://github.com/nodejs/node/pull/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>
v4.x
cjihrig 8 years ago
committed by Myles Borins
parent
commit
4676eec382
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 4
      lib/child_process.js

4
lib/child_process.js

@ -187,9 +187,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
stderr = Buffer.concat(_stderr); stderr = Buffer.concat(_stderr);
} }
if (ex) { if (!ex && code === 0 && signal === null) {
// Will be handled later
} else if (code === 0 && signal === null) {
callback(null, stdout, stderr); callback(null, stdout, stderr);
return; return;
} }

Loading…
Cancel
Save