diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-24 00:28:30 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-24 03:05:34 +0400 |
commit | fc6a9673c8ec6e22565bb5a837f33b845e5127ce (patch) | |
tree | 77454cf2b17bea4c6d59e96001904b7ac37b9dea /lib | |
parent | ed111975a096cb44a7d737e46c6e0c73025e0670 (diff) |
dgram: make setBroadcast() conform to v0.4 API
- don't return a value
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dgram.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/dgram.js b/lib/dgram.js index 4166b026e1b..2e8071ca121 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -223,11 +223,9 @@ Socket.prototype.address = function() { Socket.prototype.setBroadcast = function(arg) { - if (this._handle.setBroadcast((arg) ? 1 : 0) == -1) { - throw errnoException(errno, 'setBroadcast'); + if (this._handle.setBroadcast((arg) ? 1 : 0)) { + throw errnoException(errno, 'setBroadcast'); } - - return true; }; |