mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
net.js: lint
This commit is contained in:
parent
1513848f88
commit
5809426d75
12
lib/net.js
12
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') {
|
||||
|
Loading…
Reference in New Issue
Block a user