Browse Source

net.js: lint

v0.8.7-release
isaacs 13 years ago
parent
commit
5809426d75
  1. 12
      lib/net.js

12
lib/net.js

@ -132,12 +132,12 @@ function Socket(options) {
Stream.call(this); Stream.call(this);
switch (typeof options) { switch (typeof options) {
case 'number': case 'number':
options = { fd: options }; // Legacy interface. options = { fd: options }; // Legacy interface.
break; break;
case 'undefined': case 'undefined':
options = {}; options = {};
break; break;
} }
if (typeof options.fd === 'undefined') { if (typeof options.fd === 'undefined') {

Loading…
Cancel
Save