Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
philliphenslee committed Oct 22, 2015
1 parent 82d3d5b commit 030b1b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ SmartSlack.prototype.sendToUser = function (username, text, callback) {
*/
SmartSlack.prototype.getUptime = function () {
var uptime = '';
var seconds = ((_.now() - this._startTime) / 1000.0)
var seconds = ((_.now() - this._startTime) / 1000.0);
var minutes = (seconds / 60);
var hours = (minutes / 60);
var days = (hours / 24);
Expand All @@ -220,7 +220,7 @@ SmartSlack.prototype.getUptime = function () {
} else {
return uptime = days.toFixed(2) + ' days';
}
}
};

/**
* Used for reconnection, attempts to resolve
Expand All @@ -232,7 +232,7 @@ SmartSlack.prototype._canResolve = function (callback) {

var _this = this;

callback = (_.isFunction(callback)) ? callback : function () { };
callback = (_.isFunction(callback)) ? callback : _.noop;

this.log.debug('Attempting to resolve ' + _this.cache.data.hostname);

Expand Down Expand Up @@ -465,4 +465,4 @@ SmartSlack.prototype._sendToType = function (slackType, typeName, text, callback
callback(new Error(errors.entity_not_found));
};

module.exports = SmartSlack
module.exports = SmartSlack;

0 comments on commit 030b1b9

Please sign in to comment.