Skip to content

Add some missing semicolons in lib/pusher #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/pusher.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ var validateChannel = function(channel) {
if (channel.length > 200) {
throw new Error("Channel name too long: '" + channel + "'");
}
}
};

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

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