mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
child_process: remove unreachable code
_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: https://github.com/nodejs/node/pull/9307 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
1037463604
commit
4e3731c7e7
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user