From 1cf25f57fc759c29f3ca22240d393e59bda4e7b6 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Fri, 17 Feb 2017 22:17:10 -0700 Subject: [PATCH] ESlint no-space-func --- .eslintrc | 2 +- src/database/mongo.js | 2 +- src/database/redis.js | 2 +- src/posts/votes.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 9bdcaa181f..d11613a4fd 100644 --- a/.eslintrc +++ b/.eslintrc @@ -111,7 +111,7 @@ "object-property-newline": "off", "no-continue": "off", "no-extra-semi": "off", - "no-spaced-func": "off", + // "no-spaced-func": "off", // "no-useless-return": "off" } } diff --git a/src/database/mongo.js b/src/database/mongo.js index 61128f9916..4f67122a86 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -247,4 +247,4 @@ db.close(); }; -} (exports)); +}(exports)); diff --git a/src/database/redis.js b/src/database/redis.js index e34d626473..f363aafb5c 100644 --- a/src/database/redis.js +++ b/src/database/redis.js @@ -168,5 +168,5 @@ module.helpers = module.helpers || {}; module.helpers.redis = require('./redis/helpers'); -} (exports)); +}(exports)); diff --git a/src/posts/votes.js b/src/posts/votes.js index 3ecf71a018..f4a766ff76 100644 --- a/src/posts/votes.js +++ b/src/posts/votes.js @@ -72,7 +72,7 @@ module.exports = function (Posts) { return callback(err); } - callback (null, {upvoted: hasVoted[0], downvoted: hasVoted[1]}); + callback(null, {upvoted: hasVoted[0], downvoted: hasVoted[1]}); }); };