diff --git a/lib/CoreBot.js b/lib/CoreBot.js index 0183972cf..2541a985f 100755 --- a/lib/CoreBot.js +++ b/lib/CoreBot.js @@ -1007,7 +1007,7 @@ function Botkit(configuration) { } if (typeof(events) == 'string') { - events = events.split(/\,/g).map(function(str) { return str.trim() }) + events = events.split(/\,/g).map(function(str) { return str.trim(); }); } for (var e = 0; e < events.length; e++) { diff --git a/lib/Slack_web_api.js b/lib/Slack_web_api.js index 73a6a75e0..d17de8a3f 100755 --- a/lib/Slack_web_api.js +++ b/lib/Slack_web_api.js @@ -227,7 +227,7 @@ module.exports = function(bot, config) { request.post(params, function(error, response, body) { bot.debug('Got response', error, body); - if(response.statusCode == 429) { + if (response.statusCode == 429) { return cb(new Error('Rate limit exceeded')); } if (!error && response.statusCode == 200) {