Skip to content

Commit 0fe9f09

Browse files
committed
Merge pull request #17 from srt32/st-missing-semicolons
Add some missing semicolons in lib/pusher
2 parents 6e2f7f2 + 35c6ebb commit 0fe9f09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pusher.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ var validateChannel = function(channel) {
1717
if (channel.length > 200) {
1818
throw new Error("Channel name too long: '" + channel + "'");
1919
}
20-
}
20+
};
2121

2222
var validateSocketId = function(socketId) {
2323
if (typeof socketId !== "string" || socketId === "" || !socketId.match(/^\d+\.\d+$/)) {
2424
throw new Error("Invalid socket id: '" + socketId + "'");
2525
}
26-
}
26+
};
2727

2828
/** Callback passed to all REST API methods.
2929
*
@@ -133,7 +133,7 @@ Pusher.prototype.trigger = function(channels, event, data, socketId, callback) {
133133
throw new Error("Can't trigger a message to more than 10 channels");
134134
}
135135
for (var i = 0; i < channels.length; i++) {
136-
validateChannel(channels[i])
136+
validateChannel(channels[i]);
137137
}
138138
events.trigger(this, channels, event, data, socketId, callback);
139139
};

0 commit comments

Comments
 (0)