diff --git a/lib/net.js b/lib/net.js index 7fe892f65d..170c06e57a 100644 --- a/lib/net.js +++ b/lib/net.js @@ -132,12 +132,12 @@ function Socket(options) { Stream.call(this); switch (typeof options) { - case 'number': - options = { fd: options }; // Legacy interface. - break; - case 'undefined': - options = {}; - break; + case 'number': + options = { fd: options }; // Legacy interface. + break; + case 'undefined': + options = {}; + break; } if (typeof options.fd === 'undefined') {