From 4d777da2f0f37979b1ddb7dd1969f68320891c47 Mon Sep 17 00:00:00 2001 From: Bent Cardan Date: Mon, 16 Mar 2015 15:30:10 -0400 Subject: [PATCH] brackets for single if statement --- lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index a17ecd6..7038697 100644 --- a/lib/index.js +++ b/lib/index.js @@ -321,8 +321,9 @@ Socket.prototype.chan = function(){ var args = arguments; var channels = args.length; while(channels--) { - if (nn.Setopt(this.binding, nn.NN_SUB, nn.NN_SUB_SUBSCRIBE, args[channels]) == 0) + if (nn.Setopt(this.binding, nn.NN_SUB, nn.NN_SUB_SUBSCRIBE, args[channels]) == 0){ this.channels[args[channels]] = true; + } }; } @@ -330,8 +331,9 @@ Socket.prototype.rmchan = function(){ var args = arguments; var channels = args.length; while(channels--) { - if (nn.Setopt(this.binding, nn.NN_SUB, nn.NN_SUB_UNSUBSCRIBE, args[channels]) == 0) + if (nn.Setopt(this.binding, nn.NN_SUB, nn.NN_SUB_UNSUBSCRIBE, args[channels]) == 0){ this.channels[args[channels]] = true; + } }; }