aboutsummaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net.js b/lib/net.js
index df3c3d328a..76890335c1 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -431,7 +431,7 @@ Socket.prototype._destroy = function(exception, cb) {
});
self._writableState.errorEmitted = true;
}
- };
+ }
if (this.destroyed) {
debug('already destroyed, fire error callbacks');
@@ -1338,7 +1338,7 @@ Server.prototype.listen = function() {
Server.prototype.address = function() {
if (this._handle && this._handle.getsockname) {
var out = {};
- var err = this._handle.getsockname(out);
+ this._handle.getsockname(out);
// TODO(bnoordhuis) Check err and throw?
return out;
} else if (this._pipeName) {