Skip to content

Commit

Permalink
net.js: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 25, 2012
1 parent 1513848 commit 5809426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 5809426

Please sign in to comment.