tools: enable no-redeclare rule for linter
[platform/upstream/nodejs.git] / lib / dgram.js
index 91d64dc..93ae5c5 100644 (file)
@@ -332,7 +332,7 @@ Socket.prototype.send = function(buffer,
                                   !!callback);
       if (err && callback) {
         // don't emit as error, dgram_legacy.js compatibility
-        var ex = exceptionWithHostPort(err, 'send', address, port);
+        const ex = exceptionWithHostPort(err, 'send', address, port);
         process.nextTick(callback, ex);
       }
     }