Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

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 Original file line Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 5809426

Please sign in to comment.