diff options
Diffstat (limited to 'lib/net.js')
-rw-r--r-- | lib/net.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/net.js b/lib/net.js index 1f105a179f2..9cd21bab700 100644 --- a/lib/net.js +++ b/lib/net.js @@ -526,9 +526,8 @@ ObjectDefineProperty(Socket.prototype, 'readyState', { return 'readOnly'; } else if (!this.readable && this.writable) { return 'writeOnly'; - } else { - return 'closed'; } + return 'closed'; } }); @@ -1500,9 +1499,8 @@ Server.prototype.address = function() { return out; } else if (this._pipeName) { return this._pipeName; - } else { - return null; } + return null; }; function onconnection(err, clientHandle) { |