summaryrefslogtreecommitdiff
path: root/lib/dgram.js
diff options
context:
space:
mode:
authorYosuke Furukawa <yosuke.furukawa@gmail.com>2015-04-29 02:46:14 +0900
committerYosuke Furukawa <yosuke.furukawa@gmail.com>2015-05-09 12:10:02 +0900
commit19ffb5cf1c50e9d91d0a7a35152d20f175a2385d (patch)
treee07b7b4a9d7901620139a9e7eab4ea3e05ce4f73 /lib/dgram.js
parentf9dd34d301ab385ae316769b85ef916f9b70b6f6 (diff)
downloadandroid-node-v8-19ffb5cf1c50e9d91d0a7a35152d20f175a2385d.tar.gz
android-node-v8-19ffb5cf1c50e9d91d0a7a35152d20f175a2385d.tar.bz2
android-node-v8-19ffb5cf1c50e9d91d0a7a35152d20f175a2385d.zip
lib: fix eslint styles
PR-URL: https://github.com/iojs/io.js/pull/1539 Fixes: https://github.com/iojs/io.js/issues/1253 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Diffstat (limited to 'lib/dgram.js')
-rw-r--r--lib/dgram.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/dgram.js b/lib/dgram.js
index 7d2592819a..e80f78da07 100644
--- a/lib/dgram.js
+++ b/lib/dgram.js
@@ -39,13 +39,13 @@ function lookup6(address, callback) {
function newHandle(type) {
if (type == 'udp4') {
- var handle = new UDP;
+ var handle = new UDP();
handle.lookup = lookup4;
return handle;
}
if (type == 'udp6') {
- var handle = new UDP;
+ var handle = new UDP();
handle.lookup = lookup6;
handle.bind = handle.bind6;
handle.send = handle.send6;
@@ -301,8 +301,7 @@ Socket.prototype.send = function(buffer,
if (ex) {
if (callback) callback(ex);
self.emit('error', ex);
- }
- else if (self._handle) {
+ } else if (self._handle) {
var req = new SendWrap();
req.buffer = buffer; // Keep reference alive.
req.length = length;