Skip to content

Commit

Permalink
child_process: remove unreachable code
Browse files Browse the repository at this point in the history
_convertCustomFds() is only called from normalizeSpawnArguments(),
which always provides an options object. Therefore, there is no
need to check for options in _convertCustomFds().

PR-URL: #9307
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig authored and evanlucas committed Nov 3, 2016
1 parent 1037463 commit 4e3731c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ var _deprecatedCustomFds = internalUtil.deprecate(function(options) {
'Use options.stdio instead.');

function _convertCustomFds(options) {
if (options && options.customFds && !options.stdio) {
if (options.customFds && !options.stdio) {
_deprecatedCustomFds(options);
}
}
Expand Down

0 comments on commit 4e3731c

Please sign in to comment.