From f4b50907387833cf864630b21ecb1bea3b7590f2 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 8 Oct 2014 12:11:06 -0400 Subject: [PATCH] more linting --- src/events.js | 4 ++-- src/hotswap.js | 3 ++- src/messaging.js | 4 ++-- src/privileges.js | 2 +- src/upgrade.js | 8 +++++--- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/events.js b/src/events.js index 01f8833cbb..f7cf1a10c4 100644 --- a/src/events.js +++ b/src/events.js @@ -79,7 +79,7 @@ var fs = require('fs'), var msg = username + '(uid ' + uid + ') ' + string; events.log(msg); }); - } + }; events.log = function(msg, callback) { var logFile = path.join(nconf.get('base_dir'), logFileName); @@ -131,7 +131,7 @@ var fs = require('fs'), } callback(null, {data: buffer, next: end - buffer.length}); - }) + }); }); }; diff --git a/src/hotswap.js b/src/hotswap.js index b56beae22e..f852838550 100644 --- a/src/hotswap.js +++ b/src/hotswap.js @@ -1,3 +1,5 @@ +"use strict"; + var HotSwap = {}, winston = require('winston'), stack; @@ -11,7 +13,6 @@ HotSwap.find = function(id) { for(var x=0,numEntries=stack.length;x