Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js6
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) {