From feb8405f95d6e2f465f1267781ef17b4a4522a50 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Sat, 18 Feb 2017 02:30:48 -0700 Subject: [PATCH] ESlint eol-last --- .eslintrc | 2 +- Gruntfile.js | 2 +- bcrypt.js | 2 +- install/databases.js | 2 +- install/web.js | 2 +- minifier.js | 2 +- public/src/admin/admin.js | 2 +- public/src/admin/advanced/errors.js | 2 +- public/src/admin/manage/categories.js | 2 +- public/src/admin/manage/category-analytics.js | 2 +- public/src/admin/manage/category.js | 2 +- public/src/admin/manage/flags.js | 2 +- public/src/admin/manage/ip-blacklist.js | 2 +- public/src/admin/manage/tags.js | 2 +- public/src/admin/modules/search.js | 2 +- public/src/admin/settings/cookies.js | 2 +- public/src/ajaxify.js | 2 +- public/src/client/chats/recent.js | 2 +- public/src/client/groups/memberlist.js | 2 +- public/src/client/infinitescroll.js | 2 +- public/src/installer/install.js | 2 +- public/src/modules/coverPhoto.js | 2 +- public/src/modules/postSelect.js | 2 +- public/src/modules/scrollStop.js | 2 +- public/src/modules/uploader.js | 2 +- public/src/sockets.js | 2 +- src/categories/data.js | 2 +- src/categories/delete.js | 2 +- src/categories/unread.js | 2 +- src/controllers/accounts/chats.js | 2 +- src/controllers/accounts/edit.js | 2 +- src/controllers/accounts/follow.js | 2 +- src/controllers/accounts/groups.js | 2 +- src/controllers/accounts/info.js | 2 +- src/controllers/accounts/posts.js | 2 +- src/controllers/accounts/profile.js | 2 +- src/controllers/accounts/session.js | 2 +- src/controllers/accounts/settings.js | 2 +- src/controllers/admin/cache.js | 2 +- src/controllers/admin/database.js | 2 +- src/controllers/admin/errors.js | 2 +- src/controllers/admin/events.js | 2 +- src/controllers/admin/homepage.js | 2 +- src/controllers/admin/info.js | 2 +- src/controllers/admin/languages.js | 2 +- src/controllers/admin/logger.js | 2 +- src/controllers/admin/logs.js | 2 +- src/controllers/admin/navigation.js | 2 +- src/controllers/admin/plugins.js | 2 +- src/controllers/admin/rewards.js | 2 +- src/controllers/admin/social.js | 2 +- src/controllers/admin/sounds.js | 2 +- src/controllers/admin/themes.js | 2 +- src/controllers/admin/widgets.js | 2 +- src/controllers/popular.js | 2 +- src/controllers/recent.js | 2 +- src/controllers/sitemap.js | 2 +- src/database.js | 2 +- src/database/mongo/hash.js | 2 +- src/database/mongo/helpers.js | 2 +- src/database/mongo/list.js | 2 +- src/database/mongo/main.js | 2 +- src/database/mongo/sets.js | 2 +- src/database/mongo/sorted/add.js | 2 +- src/database/mongo/sorted/intersect.js | 2 +- src/database/mongo/sorted/remove.js | 2 +- src/database/mongo/sorted/union.js | 2 +- src/database/redis/hash.js | 2 +- src/database/redis/helpers.js | 2 +- src/database/redis/list.js | 2 +- src/database/redis/sets.js | 2 +- src/database/redis/sorted/add.js | 2 +- src/database/redis/sorted/intersect.js | 2 +- src/database/redis/sorted/remove.js | 2 +- src/database/redis/sorted/union.js | 2 +- src/emitter.js | 2 +- src/groups/cover.js | 2 +- src/hotswap.js | 2 +- src/messaging/create.js | 2 +- src/messaging/delete.js | 2 +- src/messaging/edit.js | 2 +- src/messaging/notifications.js | 2 +- src/messaging/rooms.js | 2 +- src/messaging/unread.js | 2 +- src/meta/blacklist.js | 2 +- src/meta/build.js | 2 +- src/meta/logs.js | 2 +- src/meta/settings.js | 2 +- src/meta/sounds.js | 2 +- src/meta/templates.js | 2 +- src/meta/themes.js | 2 +- src/middleware/maintenance.js | 2 +- src/navigation/admin.js | 2 +- src/navigation/index.js | 2 +- src/pagination.js | 2 +- src/password.js | 2 +- src/plugins/install.js | 2 +- src/posts/cache.js | 2 +- src/posts/category.js | 2 +- src/posts/topics.js | 2 +- src/posts/user.js | 2 +- src/privileges/categories.js | 2 +- src/privileges/helpers.js | 2 +- src/privileges/posts.js | 2 +- src/privileges/topics.js | 2 +- src/privileges/users.js | 2 +- src/pubsub.js | 2 +- src/reset.js | 2 +- src/routes/helpers.js | 2 +- src/social.js | 2 +- src/socket.io/admin/categories.js | 2 +- src/socket.io/admin/groups.js | 2 +- src/socket.io/admin/navigation.js | 2 +- src/socket.io/admin/rooms.js | 2 +- src/socket.io/admin/social.js | 2 +- src/socket.io/posts/bookmarks.js | 2 +- src/socket.io/posts/edit.js | 2 +- src/socket.io/posts/helpers.js | 2 +- src/socket.io/posts/move.js | 2 +- src/socket.io/posts/votes.js | 2 +- src/socket.io/topics/infinitescroll.js | 2 +- src/socket.io/topics/move.js | 2 +- src/socket.io/topics/tools.js | 2 +- src/socket.io/topics/unread.js | 2 +- src/socket.io/user/picture.js | 2 +- src/socket.io/user/profile.js | 2 +- src/socket.io/user/search.js | 2 +- src/socket.io/user/status.js | 2 +- src/topics/data.js | 2 +- src/topics/suggested.js | 2 +- src/topics/tags.js | 2 +- src/topics/teaser.js | 2 +- src/topics/user.js | 2 +- src/user/auth.js | 2 +- src/user/categories.js | 2 +- src/user/password.js | 2 +- src/user/posts.js | 2 +- src/user/topics.js | 2 +- src/widgets/admin.js | 2 +- test/helpers/index.js | 2 +- test/mocks/newXhr.js | 2 +- test/search-admin.js | 2 +- 142 files changed, 142 insertions(+), 142 deletions(-) diff --git a/.eslintrc b/.eslintrc index a2008ce6cd..de634c9243 100644 --- a/.eslintrc +++ b/.eslintrc @@ -98,7 +98,7 @@ "no-shadow": "off", "prefer-template": "off", "padded-blocks": "off", - "eol-last": "off", + // "eol-last": "off", // "lines-around-directive": "off", // "strict": "off", // "comma-dangle": "off", diff --git a/Gruntfile.js b/Gruntfile.js index 5e498affdb..cbfba0db6b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -143,4 +143,4 @@ module.exports = function (grunt) { worker = fork('app.js', args, { env: env }); grunt.event.on('watch', update); -}; \ No newline at end of file +}; diff --git a/bcrypt.js b/bcrypt.js index 13b4865bf6..c948b8faa5 100644 --- a/bcrypt.js +++ b/bcrypt.js @@ -31,4 +31,4 @@ function done(err, result) { } process.send({result: result}); process.disconnect(); -} \ No newline at end of file +} diff --git a/install/databases.js b/install/databases.js index 2540884096..6a8d68d633 100644 --- a/install/databases.js +++ b/install/databases.js @@ -79,4 +79,4 @@ function saveDatabaseConfig(config, databaseConfig, callback) { } callback(null, config); -} \ No newline at end of file +} diff --git a/install/web.js b/install/web.js index d1df6faae3..dc9af8cce6 100644 --- a/install/web.js +++ b/install/web.js @@ -157,4 +157,4 @@ function compileJS(callback) { fs.writeFile(path.join(__dirname, '../public/installer.min.js'), result.code, callback); } -module.exports = web; \ No newline at end of file +module.exports = web; diff --git a/minifier.js b/minifier.js index d0e92752ca..b7a605d103 100644 --- a/minifier.js +++ b/minifier.js @@ -78,4 +78,4 @@ function concatenateScripts(scripts, callback) { callback(scripts); }); -} \ No newline at end of file +} diff --git a/public/src/admin/admin.js b/public/src/admin/admin.js index 93b7755ac6..fd0804188f 100644 --- a/public/src/admin/admin.js +++ b/public/src/admin/admin.js @@ -230,4 +230,4 @@ }); }); } -}()); \ No newline at end of file +}()); diff --git a/public/src/admin/advanced/errors.js b/public/src/admin/advanced/errors.js index 9113939b2a..c49cef724e 100644 --- a/public/src/admin/advanced/errors.js +++ b/public/src/admin/advanced/errors.js @@ -110,4 +110,4 @@ define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, transl }; return Errors; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/categories.js b/public/src/admin/manage/categories.js index ea3d94d9df..9eb245eb60 100644 --- a/public/src/admin/manage/categories.js +++ b/public/src/admin/manage/categories.js @@ -207,4 +207,4 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri } return Categories; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/category-analytics.js b/public/src/admin/manage/category-analytics.js index 2df2683fcd..16500d227c 100644 --- a/public/src/admin/manage/category-analytics.js +++ b/public/src/admin/manage/category-analytics.js @@ -166,4 +166,4 @@ define('admin/manage/category-analytics', ['Chart'], function (Chart) { }; return CategoryAnalytics; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.js index efd87deae8..41c9eceff0 100644 --- a/public/src/admin/manage/category.js +++ b/public/src/admin/manage/category.js @@ -480,4 +480,4 @@ define('admin/manage/category', [ return Category; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/flags.js b/public/src/admin/manage/flags.js index 45bfff7f70..21c9d3d015 100644 --- a/public/src/admin/manage/flags.js +++ b/public/src/admin/manage/flags.js @@ -173,4 +173,4 @@ define('admin/manage/flags', [ } return Flags; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/ip-blacklist.js b/public/src/admin/manage/ip-blacklist.js index b77aa7e064..8e2bbeb007 100644 --- a/public/src/admin/manage/ip-blacklist.js +++ b/public/src/admin/manage/ip-blacklist.js @@ -41,4 +41,4 @@ define('admin/manage/ip-blacklist', ['translator'], function (translator) { }; return Blacklist; -}); \ No newline at end of file +}); diff --git a/public/src/admin/manage/tags.js b/public/src/admin/manage/tags.js index 93846da70e..4b73f20609 100644 --- a/public/src/admin/manage/tags.js +++ b/public/src/admin/manage/tags.js @@ -169,4 +169,4 @@ define('admin/manage/tags', [ } return Tags; -}); \ No newline at end of file +}); diff --git a/public/src/admin/modules/search.js b/public/src/admin/modules/search.js index 2449a27b2e..26ecd8eee0 100644 --- a/public/src/admin/modules/search.js +++ b/public/src/admin/modules/search.js @@ -150,4 +150,4 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) { } return search; -}); \ No newline at end of file +}); diff --git a/public/src/admin/settings/cookies.js b/public/src/admin/settings/cookies.js index f00411082c..0a2e8c7243 100644 --- a/public/src/admin/settings/cookies.js +++ b/public/src/admin/settings/cookies.js @@ -21,4 +21,4 @@ define('admin/settings/cookies', [ }; return Module; -}); \ No newline at end of file +}); diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index bcb6f5fd05..af52223536 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -423,4 +423,4 @@ $(document).ready(function () { $(this).parent().remove(); }); -}); \ No newline at end of file +}); diff --git a/public/src/client/chats/recent.js b/public/src/client/chats/recent.js index e689f0faad..8224cda8c2 100644 --- a/public/src/client/chats/recent.js +++ b/public/src/client/chats/recent.js @@ -54,4 +54,4 @@ define('forum/chats/recent', function () { return recent; -}); \ No newline at end of file +}); diff --git a/public/src/client/groups/memberlist.js b/public/src/client/groups/memberlist.js index e69deb1d82..2b5cbb5648 100644 --- a/public/src/client/groups/memberlist.js +++ b/public/src/client/groups/memberlist.js @@ -94,4 +94,4 @@ define('forum/groups/memberlist', ['components', 'forum/infinitescroll'], functi } return MemberList; -}); \ No newline at end of file +}); diff --git a/public/src/client/infinitescroll.js b/public/src/client/infinitescroll.js index 9387fa44a7..24e7f6fc68 100644 --- a/public/src/client/infinitescroll.js +++ b/public/src/client/infinitescroll.js @@ -88,4 +88,4 @@ define('forum/infinitescroll', function () { }; return scroll; -}); \ No newline at end of file +}); diff --git a/public/src/installer/install.js b/public/src/installer/install.js index e9aaf7629f..463c2f741b 100644 --- a/public/src/installer/install.js +++ b/public/src/installer/install.js @@ -123,4 +123,4 @@ $('document').ready(function () { }, 750); }); } -}); \ No newline at end of file +}); diff --git a/public/src/modules/coverPhoto.js b/public/src/modules/coverPhoto.js index 8620a5df47..a2aee26775 100644 --- a/public/src/modules/coverPhoto.js +++ b/public/src/modules/coverPhoto.js @@ -86,4 +86,4 @@ define('coverPhoto', [ }; return coverPhoto; -}); \ No newline at end of file +}); diff --git a/public/src/modules/postSelect.js b/public/src/modules/postSelect.js index c9c7aba08d..5dae2995ea 100644 --- a/public/src/modules/postSelect.js +++ b/public/src/modules/postSelect.js @@ -54,4 +54,4 @@ define('postSelect', ['components'], function (components) { return PostSelect; -}); \ No newline at end of file +}); diff --git a/public/src/modules/scrollStop.js b/public/src/modules/scrollStop.js index 0fd722ff89..82d2df4de8 100644 --- a/public/src/modules/scrollStop.js +++ b/public/src/modules/scrollStop.js @@ -28,4 +28,4 @@ define('scrollStop', function () { }; return Module; -}); \ No newline at end of file +}); diff --git a/public/src/modules/uploader.js b/public/src/modules/uploader.js index 12d2f4c0fc..22fff0bc19 100644 --- a/public/src/modules/uploader.js +++ b/public/src/modules/uploader.js @@ -127,4 +127,4 @@ define('uploader', ['translator'], function (translator) { } return module; -}); \ No newline at end of file +}); diff --git a/public/src/sockets.js b/public/src/sockets.js index bc33dc9bbf..8105524d22 100644 --- a/public/src/sockets.js +++ b/public/src/sockets.js @@ -125,4 +125,4 @@ app.isConnected = false; window.location.href = config.relative_path + '/'; } -}()); \ No newline at end of file +}()); diff --git a/src/categories/data.js b/src/categories/data.js index 3a66cd29e0..9c15fbb2d4 100644 --- a/src/categories/data.js +++ b/src/categories/data.js @@ -112,4 +112,4 @@ module.exports = function (Categories) { db.incrObjectFieldBy('category:' + cid, field, value, callback); }; -}; \ No newline at end of file +}; diff --git a/src/categories/delete.js b/src/categories/delete.js index b1fd7ba407..20aef52472 100644 --- a/src/categories/delete.js +++ b/src/categories/delete.js @@ -104,4 +104,4 @@ module.exports = function (Categories) { callback(err); }); } -}; \ No newline at end of file +}; diff --git a/src/categories/unread.js b/src/categories/unread.js index 498391693e..bb7c9d6432 100644 --- a/src/categories/unread.js +++ b/src/categories/unread.js @@ -54,4 +54,4 @@ module.exports = function (Categories) { db.isSetMember('cid:' + cid + ':read_by_uid', uid, callback); }; -}; \ No newline at end of file +}; diff --git a/src/controllers/accounts/chats.js b/src/controllers/accounts/chats.js index 069734dbdc..d085ea1d4a 100644 --- a/src/controllers/accounts/chats.js +++ b/src/controllers/accounts/chats.js @@ -114,4 +114,4 @@ chatsController.redirectToChat = function (req, res, next) { }; -module.exports = chatsController; \ No newline at end of file +module.exports = chatsController; diff --git a/src/controllers/accounts/edit.js b/src/controllers/accounts/edit.js index c31d55efa3..3a5fabf5d3 100644 --- a/src/controllers/accounts/edit.js +++ b/src/controllers/accounts/edit.js @@ -158,4 +158,4 @@ editController.uploadCoverPicture = function (req, res, next) { }); }; -module.exports = editController; \ No newline at end of file +module.exports = editController; diff --git a/src/controllers/accounts/follow.js b/src/controllers/accounts/follow.js index 3f4b3a45f1..7cc3e1895b 100644 --- a/src/controllers/accounts/follow.js +++ b/src/controllers/accounts/follow.js @@ -53,4 +53,4 @@ function getFollow(tpl, name, req, res, callback) { }); } -module.exports = followController; \ No newline at end of file +module.exports = followController; diff --git a/src/controllers/accounts/groups.js b/src/controllers/accounts/groups.js index 3fd97965b2..fc81b1173a 100644 --- a/src/controllers/accounts/groups.js +++ b/src/controllers/accounts/groups.js @@ -51,4 +51,4 @@ groupsController.get = function (req, res, callback) { }); }; -module.exports = groupsController; \ No newline at end of file +module.exports = groupsController; diff --git a/src/controllers/accounts/info.js b/src/controllers/accounts/info.js index ca996b6f9e..9df74b1380 100644 --- a/src/controllers/accounts/info.js +++ b/src/controllers/accounts/info.js @@ -42,4 +42,4 @@ infoController.get = function (req, res, callback) { }); }; -module.exports = infoController; \ No newline at end of file +module.exports = infoController; diff --git a/src/controllers/accounts/posts.js b/src/controllers/accounts/posts.js index dbb1f231ac..48d7c23a80 100644 --- a/src/controllers/accounts/posts.js +++ b/src/controllers/accounts/posts.js @@ -149,4 +149,4 @@ function getFromUserSet(template, req, res, callback) { }); } -module.exports = postsController; \ No newline at end of file +module.exports = postsController; diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.js index d51a2f56da..c3fa0e9092 100644 --- a/src/controllers/accounts/profile.js +++ b/src/controllers/accounts/profile.js @@ -137,4 +137,4 @@ profileController.get = function (req, res, callback) { }); }; -module.exports = profileController; \ No newline at end of file +module.exports = profileController; diff --git a/src/controllers/accounts/session.js b/src/controllers/accounts/session.js index a971f4ccde..67fae0bef3 100644 --- a/src/controllers/accounts/session.js +++ b/src/controllers/accounts/session.js @@ -52,4 +52,4 @@ sessionController.revoke = function (req, res, next) { }); }; -module.exports = sessionController; \ No newline at end of file +module.exports = sessionController; diff --git a/src/controllers/accounts/settings.js b/src/controllers/accounts/settings.js index 68f53bd070..f18a7b0fad 100644 --- a/src/controllers/accounts/settings.js +++ b/src/controllers/accounts/settings.js @@ -189,4 +189,4 @@ function getHomePageRoutes(callback) { } -module.exports = settingsController; \ No newline at end of file +module.exports = settingsController; diff --git a/src/controllers/admin/cache.js b/src/controllers/admin/cache.js index db82f05532..3dab364893 100644 --- a/src/controllers/admin/cache.js +++ b/src/controllers/admin/cache.js @@ -32,4 +32,4 @@ cacheController.get = function (req, res, next) { }; -module.exports = cacheController; \ No newline at end of file +module.exports = cacheController; diff --git a/src/controllers/admin/database.js b/src/controllers/admin/database.js index f5006af109..9ce8a3c00f 100644 --- a/src/controllers/admin/database.js +++ b/src/controllers/admin/database.js @@ -32,4 +32,4 @@ databaseController.get = function (req, res, next) { }); }; -module.exports = databaseController; \ No newline at end of file +module.exports = databaseController; diff --git a/src/controllers/admin/errors.js b/src/controllers/admin/errors.js index 23ab102a25..5a00e95537 100644 --- a/src/controllers/admin/errors.js +++ b/src/controllers/admin/errors.js @@ -35,4 +35,4 @@ errorsController.export = function (req, res, next) { }; -module.exports = errorsController; \ No newline at end of file +module.exports = errorsController; diff --git a/src/controllers/admin/events.js b/src/controllers/admin/events.js index f3ac6b6925..190b5b612e 100644 --- a/src/controllers/admin/events.js +++ b/src/controllers/admin/events.js @@ -39,4 +39,4 @@ eventsController.get = function (req, res, next) { }; -module.exports = eventsController; \ No newline at end of file +module.exports = eventsController; diff --git a/src/controllers/admin/homepage.js b/src/controllers/admin/homepage.js index 44d8074697..d40a578e66 100644 --- a/src/controllers/admin/homepage.js +++ b/src/controllers/admin/homepage.js @@ -63,4 +63,4 @@ homePageController.get = function (req, res, next) { }); }; -module.exports = homePageController; \ No newline at end of file +module.exports = homePageController; diff --git a/src/controllers/admin/info.js b/src/controllers/admin/info.js index 3517472eba..ac32a2c63a 100644 --- a/src/controllers/admin/info.js +++ b/src/controllers/admin/info.js @@ -97,4 +97,4 @@ function getGitInfo(callback) { }, callback); } -module.exports = infoController; \ No newline at end of file +module.exports = infoController; diff --git a/src/controllers/admin/languages.js b/src/controllers/admin/languages.js index 5dd4b14a00..0ac4e98e99 100644 --- a/src/controllers/admin/languages.js +++ b/src/controllers/admin/languages.js @@ -22,4 +22,4 @@ languagesController.get = function (req, res, next) { }); }; -module.exports = languagesController; \ No newline at end of file +module.exports = languagesController; diff --git a/src/controllers/admin/logger.js b/src/controllers/admin/logger.js index 7ae327a858..0e8006bbeb 100644 --- a/src/controllers/admin/logger.js +++ b/src/controllers/admin/logger.js @@ -6,4 +6,4 @@ loggerController.get = function (req, res) { res.render('admin/development/logger', {}); }; -module.exports = loggerController; \ No newline at end of file +module.exports = loggerController; diff --git a/src/controllers/admin/logs.js b/src/controllers/admin/logs.js index e30793a8e1..c2c5166dd7 100644 --- a/src/controllers/admin/logs.js +++ b/src/controllers/admin/logs.js @@ -19,4 +19,4 @@ logsController.get = function (req, res, next) { }; -module.exports = logsController; \ No newline at end of file +module.exports = logsController; diff --git a/src/controllers/admin/navigation.js b/src/controllers/admin/navigation.js index 423f21721c..9c96444be3 100644 --- a/src/controllers/admin/navigation.js +++ b/src/controllers/admin/navigation.js @@ -20,4 +20,4 @@ navigationController.get = function (req, res, next) { }); }; -module.exports = navigationController; \ No newline at end of file +module.exports = navigationController; diff --git a/src/controllers/admin/plugins.js b/src/controllers/admin/plugins.js index 84d0335059..c55ef4b457 100644 --- a/src/controllers/admin/plugins.js +++ b/src/controllers/admin/plugins.js @@ -53,4 +53,4 @@ pluginsController.get = function (req, res, next) { }); }; -module.exports = pluginsController; \ No newline at end of file +module.exports = pluginsController; diff --git a/src/controllers/admin/rewards.js b/src/controllers/admin/rewards.js index 87f2cc16c7..56c5ed3cd0 100644 --- a/src/controllers/admin/rewards.js +++ b/src/controllers/admin/rewards.js @@ -13,4 +13,4 @@ rewardsController.get = function (req, res, next) { }; -module.exports = rewardsController; \ No newline at end of file +module.exports = rewardsController; diff --git a/src/controllers/admin/social.js b/src/controllers/admin/social.js index 1a287c0272..da12f3341e 100644 --- a/src/controllers/admin/social.js +++ b/src/controllers/admin/social.js @@ -17,4 +17,4 @@ socialController.get = function (req, res, next) { }); }; -module.exports = socialController; \ No newline at end of file +module.exports = socialController; diff --git a/src/controllers/admin/sounds.js b/src/controllers/admin/sounds.js index a097387949..97dac0099a 100644 --- a/src/controllers/admin/sounds.js +++ b/src/controllers/admin/sounds.js @@ -22,4 +22,4 @@ soundsController.get = function (req, res, next) { }); }; -module.exports = soundsController; \ No newline at end of file +module.exports = soundsController; diff --git a/src/controllers/admin/themes.js b/src/controllers/admin/themes.js index 1cf51ae7e6..598cd7cf94 100644 --- a/src/controllers/admin/themes.js +++ b/src/controllers/admin/themes.js @@ -22,4 +22,4 @@ themesController.get = function (req, res, next) { }); }; -module.exports = themesController; \ No newline at end of file +module.exports = themesController; diff --git a/src/controllers/admin/widgets.js b/src/controllers/admin/widgets.js index c2d0d1e667..889fa1dcc6 100644 --- a/src/controllers/admin/widgets.js +++ b/src/controllers/admin/widgets.js @@ -13,4 +13,4 @@ widgetsController.get = function (req, res, next) { }; -module.exports = widgetsController; \ No newline at end of file +module.exports = widgetsController; diff --git a/src/controllers/popular.js b/src/controllers/popular.js index 62e25435bc..daff632f12 100644 --- a/src/controllers/popular.js +++ b/src/controllers/popular.js @@ -71,4 +71,4 @@ popularController.get = function (req, res, next) { }); }; -module.exports = popularController; \ No newline at end of file +module.exports = popularController; diff --git a/src/controllers/recent.js b/src/controllers/recent.js index 94a8c6a9ec..0901ea624d 100644 --- a/src/controllers/recent.js +++ b/src/controllers/recent.js @@ -92,4 +92,4 @@ recentController.get = function (req, res, next) { }); }; -module.exports = recentController; \ No newline at end of file +module.exports = recentController; diff --git a/src/controllers/sitemap.js b/src/controllers/sitemap.js index 42b0ae1076..453aed4f6e 100644 --- a/src/controllers/sitemap.js +++ b/src/controllers/sitemap.js @@ -65,4 +65,4 @@ sitemapController.getTopicPage = function (req, res, next) { }); }; -module.exports = sitemapController; \ No newline at end of file +module.exports = sitemapController; diff --git a/src/database.js b/src/database.js index ef98e09a59..c62255306b 100644 --- a/src/database.js +++ b/src/database.js @@ -11,4 +11,4 @@ if (!databaseName) { var primaryDB = require('./database/' + databaseName); -module.exports = primaryDB; \ No newline at end of file +module.exports = primaryDB; diff --git a/src/database/mongo/hash.js b/src/database/mongo/hash.js index a70578cc9f..cd9af198d2 100644 --- a/src/database/mongo/hash.js +++ b/src/database/mongo/hash.js @@ -244,4 +244,4 @@ module.exports = function (db, module) { callback(err, result && result.value ? result.value[field] : null); }); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/helpers.js b/src/database/mongo/helpers.js index c135cf7f12..47f8434c77 100644 --- a/src/database/mongo/helpers.js +++ b/src/database/mongo/helpers.js @@ -34,4 +34,4 @@ helpers.valueToString = function (value) { helpers.noop = function () {}; -module.exports = helpers; \ No newline at end of file +module.exports = helpers; diff --git a/src/database/mongo/list.js b/src/database/mongo/list.js index e96ad236fb..2314c7cbc3 100644 --- a/src/database/mongo/list.js +++ b/src/database/mongo/list.js @@ -100,4 +100,4 @@ module.exports = function (db, module) { callback(null, data.array); }); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/main.js b/src/database/mongo/main.js index 5eacf84242..0aa832e02d 100644 --- a/src/database/mongo/main.js +++ b/src/database/mongo/main.js @@ -96,4 +96,4 @@ module.exports = function (db, module) { module.pexpireAt = function (key, timestamp, callback) { module.setObjectField(key, 'expireAt', new Date(timestamp), callback); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/sets.js b/src/database/mongo/sets.js index 3580702d7a..c4834e3fd8 100644 --- a/src/database/mongo/sets.js +++ b/src/database/mongo/sets.js @@ -217,4 +217,4 @@ module.exports = function (db, module) { }); }); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/sorted/add.js b/src/database/mongo/sorted/add.js index 1342586478..2abae99d49 100644 --- a/src/database/mongo/sorted/add.js +++ b/src/database/mongo/sorted/add.js @@ -62,4 +62,4 @@ module.exports = function (db, module) { }); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/sorted/intersect.js b/src/database/mongo/sorted/intersect.js index b5c0dae92f..74b7d1596b 100644 --- a/src/database/mongo/sorted/intersect.js +++ b/src/database/mongo/sorted/intersect.js @@ -104,4 +104,4 @@ module.exports = function (db, module) { }); } -}; \ No newline at end of file +}; diff --git a/src/database/mongo/sorted/remove.js b/src/database/mongo/sorted/remove.js index 71320619c4..e7f547995c 100644 --- a/src/database/mongo/sorted/remove.js +++ b/src/database/mongo/sorted/remove.js @@ -54,4 +54,4 @@ module.exports = function (db, module) { }); }; -}; \ No newline at end of file +}; diff --git a/src/database/mongo/sorted/union.js b/src/database/mongo/sorted/union.js index e150bb6831..36f5c545ad 100644 --- a/src/database/mongo/sorted/union.js +++ b/src/database/mongo/sorted/union.js @@ -82,4 +82,4 @@ module.exports = function (db, module) { }); } -}; \ No newline at end of file +}; diff --git a/src/database/redis/hash.js b/src/database/redis/hash.js index bb3c24df5d..756b82614c 100644 --- a/src/database/redis/hash.js +++ b/src/database/redis/hash.js @@ -119,4 +119,4 @@ module.exports = function (redisClient, module) { module.incrObjectFieldBy = function (key, field, value, callback) { redisClient.hincrby(key, field, value, callback); }; -}; \ No newline at end of file +}; diff --git a/src/database/redis/helpers.js b/src/database/redis/helpers.js index cb2a77d0f9..7100437177 100644 --- a/src/database/redis/helpers.js +++ b/src/database/redis/helpers.js @@ -36,4 +36,4 @@ helpers.resultsToBool = function (results) { return results; }; -module.exports = helpers; \ No newline at end of file +module.exports = helpers; diff --git a/src/database/redis/list.js b/src/database/redis/list.js index 7c6011e3bc..3323937cbf 100644 --- a/src/database/redis/list.js +++ b/src/database/redis/list.js @@ -38,4 +38,4 @@ module.exports = function (redisClient, module) { callback = callback || function () {}; redisClient.lrange(key, start, stop, callback); }; -}; \ No newline at end of file +}; diff --git a/src/database/redis/sets.js b/src/database/redis/sets.js index 72bdceb9fd..951b2648c9 100644 --- a/src/database/redis/sets.js +++ b/src/database/redis/sets.js @@ -77,4 +77,4 @@ module.exports = function (redisClient, module) { }; return module; -}; \ No newline at end of file +}; diff --git a/src/database/redis/sorted/add.js b/src/database/redis/sorted/add.js index fcccffa213..96b99a4376 100644 --- a/src/database/redis/sorted/add.js +++ b/src/database/redis/sorted/add.js @@ -46,4 +46,4 @@ module.exports = function (redisClient, module) { }; -}; \ No newline at end of file +}; diff --git a/src/database/redis/sorted/intersect.js b/src/database/redis/sorted/intersect.js index a42556cd7e..6ba6d45515 100644 --- a/src/database/redis/sorted/intersect.js +++ b/src/database/redis/sorted/intersect.js @@ -76,4 +76,4 @@ module.exports = function (redisClient, module) { callback(null, objects); }); } -}; \ No newline at end of file +}; diff --git a/src/database/redis/sorted/remove.js b/src/database/redis/sorted/remove.js index 8619e0be34..1bf86db414 100644 --- a/src/database/redis/sorted/remove.js +++ b/src/database/redis/sorted/remove.js @@ -35,4 +35,4 @@ module.exports = function (redisClient, module) { callback(err); }); }; -}; \ No newline at end of file +}; diff --git a/src/database/redis/sorted/union.js b/src/database/redis/sorted/union.js index ab8584858c..24c1440249 100644 --- a/src/database/redis/sorted/union.js +++ b/src/database/redis/sorted/union.js @@ -57,4 +57,4 @@ module.exports = function (redisClient, module) { callback(null, objects); }); }; -}; \ No newline at end of file +}; diff --git a/src/emitter.js b/src/emitter.js index 833c091cb6..140c35f639 100644 --- a/src/emitter.js +++ b/src/emitter.js @@ -32,4 +32,4 @@ eventEmitter.any = function (events, callback) { }); }; -module.exports = eventEmitter; \ No newline at end of file +module.exports = eventEmitter; diff --git a/src/groups/cover.js b/src/groups/cover.js index 7356ee2347..c2a351cde7 100644 --- a/src/groups/cover.js +++ b/src/groups/cover.js @@ -119,4 +119,4 @@ module.exports = function (Groups) { db.deleteObjectFields('group:' + data.groupName, ['cover:url', 'cover:thumb:url', 'cover:position'], callback); }; -}; \ No newline at end of file +}; diff --git a/src/hotswap.js b/src/hotswap.js index d46f6fec8e..76cb2f774b 100644 --- a/src/hotswap.js +++ b/src/hotswap.js @@ -31,4 +31,4 @@ HotSwap.replace = function (id, router) { } }; -module.exports = HotSwap; \ No newline at end of file +module.exports = HotSwap; diff --git a/src/messaging/create.js b/src/messaging/create.js index 45876f5502..80eb198444 100644 --- a/src/messaging/create.js +++ b/src/messaging/create.js @@ -117,4 +117,4 @@ module.exports = function (Messaging) { }); db.sortedSetsAdd(keys, timestamp, mid, callback); }; -}; \ No newline at end of file +}; diff --git a/src/messaging/delete.js b/src/messaging/delete.js index 3d019f5bdb..633ac62b22 100644 --- a/src/messaging/delete.js +++ b/src/messaging/delete.js @@ -24,4 +24,4 @@ module.exports = function (Messaging) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/messaging/edit.js b/src/messaging/edit.js index 5cbc95c513..96b6385681 100644 --- a/src/messaging/edit.js +++ b/src/messaging/edit.js @@ -79,4 +79,4 @@ module.exports = function (Messaging) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js index 920df36aea..72a7392afb 100644 --- a/src/messaging/notifications.js +++ b/src/messaging/notifications.js @@ -121,4 +121,4 @@ module.exports = function (Messaging) { }); }); } -}; \ No newline at end of file +}; diff --git a/src/messaging/rooms.js b/src/messaging/rooms.js index 0410726af6..07df01e79d 100644 --- a/src/messaging/rooms.js +++ b/src/messaging/rooms.js @@ -223,4 +223,4 @@ module.exports = function (Messaging) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/messaging/unread.js b/src/messaging/unread.js index 74f4fc99c2..dfcaa2b2f5 100644 --- a/src/messaging/unread.js +++ b/src/messaging/unread.js @@ -52,4 +52,4 @@ module.exports = function (Messaging) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/meta/blacklist.js b/src/meta/blacklist.js index 3487d31f41..a7e81c604b 100644 --- a/src/meta/blacklist.js +++ b/src/meta/blacklist.js @@ -123,4 +123,4 @@ Blacklist.validate = function (rules, callback) { }); }; -module.exports = Blacklist; \ No newline at end of file +module.exports = Blacklist; diff --git a/src/meta/build.js b/src/meta/build.js index cf07b15c9d..887d2cb766 100644 --- a/src/meta/build.js +++ b/src/meta/build.js @@ -141,4 +141,4 @@ exports.buildTargets = function (targets, callback) { } }); }); -}; \ No newline at end of file +}; diff --git a/src/meta/logs.js b/src/meta/logs.js index e8be88d48d..c0b3f47137 100644 --- a/src/meta/logs.js +++ b/src/meta/logs.js @@ -26,4 +26,4 @@ module.exports = function (Meta) { fs.truncate(Meta.logs.path, 0, callback); }; -}; \ No newline at end of file +}; diff --git a/src/meta/settings.js b/src/meta/settings.js index 53a00c80f3..d29cdb753a 100644 --- a/src/meta/settings.js +++ b/src/meta/settings.js @@ -62,4 +62,4 @@ module.exports = function (Meta) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/meta/sounds.js b/src/meta/sounds.js index 895787e81b..6be040e0e3 100644 --- a/src/meta/sounds.js +++ b/src/meta/sounds.js @@ -156,4 +156,4 @@ module.exports = function (Meta) { }, ], callback); } -}; \ No newline at end of file +}; diff --git a/src/meta/templates.js b/src/meta/templates.js index 074c02ac26..4fc3205f63 100644 --- a/src/meta/templates.js +++ b/src/meta/templates.js @@ -146,4 +146,4 @@ function compile(callback) { }); } -module.exports = Templates; \ No newline at end of file +module.exports = Templates; diff --git a/src/meta/themes.js b/src/meta/themes.js index e5359232fb..bd796f0968 100644 --- a/src/meta/themes.js +++ b/src/meta/themes.js @@ -165,4 +165,4 @@ module.exports = function (Meta) { nconf.set('theme_templates_path', themePath); nconf.set('theme_config', path.join(nconf.get('themes_path'), themeObj.id, 'theme.json')); }; -}; \ No newline at end of file +}; diff --git a/src/middleware/maintenance.js b/src/middleware/maintenance.js index 655e92b4cf..c5c232e5e7 100644 --- a/src/middleware/maintenance.js +++ b/src/middleware/maintenance.js @@ -37,4 +37,4 @@ module.exports = function (middleware) { }); }; -}; \ No newline at end of file +}; diff --git a/src/navigation/admin.js b/src/navigation/admin.js index ade6adaea1..b186e332eb 100644 --- a/src/navigation/admin.js +++ b/src/navigation/admin.js @@ -71,4 +71,4 @@ function getAvailable(callback) { plugins.fireHook('filter:navigation.available', core, callback); } -module.exports = admin; \ No newline at end of file +module.exports = admin; diff --git a/src/navigation/index.js b/src/navigation/index.js index ee97c88f0c..2cb24f3a9f 100644 --- a/src/navigation/index.js +++ b/src/navigation/index.js @@ -38,4 +38,4 @@ navigation.get = function (callback) { }; -module.exports = navigation; \ No newline at end of file +module.exports = navigation; diff --git a/src/pagination.js b/src/pagination.js index 7480756d1d..6f61c80def 100644 --- a/src/pagination.js +++ b/src/pagination.js @@ -76,4 +76,4 @@ pagination.create = function (currentPage, pageCount, queryObj) { }; -module.exports = pagination; \ No newline at end of file +module.exports = pagination; diff --git a/src/password.js b/src/password.js index 54547abef3..c98b2f5ba6 100644 --- a/src/password.js +++ b/src/password.js @@ -30,4 +30,4 @@ } return module; -}(exports)); \ No newline at end of file +}(exports)); diff --git a/src/plugins/install.js b/src/plugins/install.js index 9fc771dec2..c6bd030ca2 100644 --- a/src/plugins/install.js +++ b/src/plugins/install.js @@ -145,4 +145,4 @@ module.exports = function (Plugins) { Plugins.getActive = function (callback) { db.getSortedSetRange('plugins:active', 0, -1, callback); }; -}; \ No newline at end of file +}; diff --git a/src/posts/cache.js b/src/posts/cache.js index c43b3ef430..c73e1c8d92 100644 --- a/src/posts/cache.js +++ b/src/posts/cache.js @@ -9,4 +9,4 @@ var cache = LRU({ maxAge: 1000 * 60 * 60, }); -module.exports = cache; \ No newline at end of file +module.exports = cache; diff --git a/src/posts/category.js b/src/posts/category.js index dbbe71dadb..49876874ca 100644 --- a/src/posts/category.js +++ b/src/posts/category.js @@ -82,4 +82,4 @@ module.exports = function (Posts) { }); } }; -}; \ No newline at end of file +}; diff --git a/src/posts/topics.js b/src/posts/topics.js index d0b9318e81..a33fd74bb3 100644 --- a/src/posts/topics.js +++ b/src/posts/topics.js @@ -85,4 +85,4 @@ module.exports = function (Posts) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/posts/user.js b/src/posts/user.js index 644ee5fe11..b5687b34fa 100644 --- a/src/posts/user.js +++ b/src/posts/user.js @@ -127,4 +127,4 @@ module.exports = function (Posts) { user.isModerator(uid, cids, callback); }); }; -}; \ No newline at end of file +}; diff --git a/src/privileges/categories.js b/src/privileges/categories.js index ff3e2ed3ec..16e9d60b60 100644 --- a/src/privileges/categories.js +++ b/src/privileges/categories.js @@ -403,4 +403,4 @@ module.exports = function (privileges) { }, callback); }; -}; \ No newline at end of file +}; diff --git a/src/privileges/helpers.js b/src/privileges/helpers.js index bf3f45751e..23f555f89d 100644 --- a/src/privileges/helpers.js +++ b/src/privileges/helpers.js @@ -133,4 +133,4 @@ function isGuestAllowedToPrivileges(privileges, cid, callback) { groups.isMemberOfGroups('guests', groupKeys, callback); } -module.exports = helpers; \ No newline at end of file +module.exports = helpers; diff --git a/src/privileges/posts.js b/src/privileges/posts.js index e53a9d148a..e362e27a27 100644 --- a/src/privileges/posts.js +++ b/src/privileges/posts.js @@ -269,4 +269,4 @@ module.exports = function (privileges) { }, ], callback); } -}; \ No newline at end of file +}; diff --git a/src/privileges/topics.js b/src/privileges/topics.js index 611086f622..abf491bdc2 100644 --- a/src/privileges/topics.js +++ b/src/privileges/topics.js @@ -251,4 +251,4 @@ module.exports = function (privileges) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/privileges/users.js b/src/privileges/users.js index 5dd26f5189..7c4818b013 100644 --- a/src/privileges/users.js +++ b/src/privileges/users.js @@ -161,4 +161,4 @@ module.exports = function (privileges) { }); }; -}; \ No newline at end of file +}; diff --git a/src/pubsub.js b/src/pubsub.js index 157cb7da98..9f7d3fe0d5 100644 --- a/src/pubsub.js +++ b/src/pubsub.js @@ -45,4 +45,4 @@ PubSub.prototype.publish = function (event, data) { var pubsub = new PubSub(); -module.exports = pubsub; \ No newline at end of file +module.exports = pubsub; diff --git a/src/reset.js b/src/reset.js index 05a337869f..b69f4980dc 100644 --- a/src/reset.js +++ b/src/reset.js @@ -161,4 +161,4 @@ function resetWidgets(callback) { }); } -module.exports = Reset; \ No newline at end of file +module.exports = Reset; diff --git a/src/routes/helpers.js b/src/routes/helpers.js index 2379c7ebf1..8452b7f6d9 100644 --- a/src/routes/helpers.js +++ b/src/routes/helpers.js @@ -9,4 +9,4 @@ helpers.setupPageRoute = function (router, name, middleware, middlewares, contro router.get('/api' + name, middlewares, controller); }; -module.exports = helpers; \ No newline at end of file +module.exports = helpers; diff --git a/src/social.js b/src/social.js index 665b57866b..71780b5b81 100644 --- a/src/social.js +++ b/src/social.js @@ -82,4 +82,4 @@ social.setActivePostSharingNetworks = function (networkIDs, callback) { ], callback); }; -module.exports = social; \ No newline at end of file +module.exports = social; diff --git a/src/socket.io/admin/categories.js b/src/socket.io/admin/categories.js index faf244f6ef..3f81d2a5a7 100644 --- a/src/socket.io/admin/categories.js +++ b/src/socket.io/admin/categories.js @@ -103,4 +103,4 @@ Categories.copyPrivilegesFrom = function (socket, data, callback) { categories.copyPrivilegesFrom(data.fromCid, data.toCid, callback); }; -module.exports = Categories; \ No newline at end of file +module.exports = Categories; diff --git a/src/socket.io/admin/groups.js b/src/socket.io/admin/groups.js index b193f6e6ea..fdb50e0561 100644 --- a/src/socket.io/admin/groups.js +++ b/src/socket.io/admin/groups.js @@ -67,4 +67,4 @@ Groups.update = function (socket, data, callback) { groups.update(data.groupName, data.values, callback); }; -module.exports = Groups; \ No newline at end of file +module.exports = Groups; diff --git a/src/socket.io/admin/navigation.js b/src/socket.io/admin/navigation.js index ae67588377..807b10ae85 100644 --- a/src/socket.io/admin/navigation.js +++ b/src/socket.io/admin/navigation.js @@ -7,4 +7,4 @@ SocketNavigation.save = function (socket, data, callback) { navigationAdmin.save(data, callback); }; -module.exports = SocketNavigation; \ No newline at end of file +module.exports = SocketNavigation; diff --git a/src/socket.io/admin/rooms.js b/src/socket.io/admin/rooms.js index ee26ac1428..96144fbeaf 100644 --- a/src/socket.io/admin/rooms.js +++ b/src/socket.io/admin/rooms.js @@ -183,4 +183,4 @@ SocketRooms.getLocalStats = function (callback) { }; -module.exports = SocketRooms; \ No newline at end of file +module.exports = SocketRooms; diff --git a/src/socket.io/admin/social.js b/src/socket.io/admin/social.js index e69bcc4084..5f422eff6b 100644 --- a/src/socket.io/admin/social.js +++ b/src/socket.io/admin/social.js @@ -7,4 +7,4 @@ SocketSocial.savePostSharingNetworks = function (socket, data, callback) { social.setActivePostSharingNetworks(data, callback); }; -module.exports = SocketSocial; \ No newline at end of file +module.exports = SocketSocial; diff --git a/src/socket.io/posts/bookmarks.js b/src/socket.io/posts/bookmarks.js index d0bb84256c..27d1c9570e 100644 --- a/src/socket.io/posts/bookmarks.js +++ b/src/socket.io/posts/bookmarks.js @@ -13,4 +13,4 @@ module.exports = function (SocketPosts) { helpers.postCommand(socket, 'unbookmark', 'bookmarked', '', data, callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/posts/edit.js b/src/socket.io/posts/edit.js index 93b4b0cdb4..cbb613c16b 100644 --- a/src/socket.io/posts/edit.js +++ b/src/socket.io/posts/edit.js @@ -72,4 +72,4 @@ module.exports = function (SocketPosts) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/posts/helpers.js b/src/socket.io/posts/helpers.js index d1285a6f53..7db1a8b5ae 100644 --- a/src/socket.io/posts/helpers.js +++ b/src/socket.io/posts/helpers.js @@ -73,4 +73,4 @@ function executeCommand(socket, command, eventName, notification, data, callback next(null, result); }, ], callback); -} \ No newline at end of file +} diff --git a/src/socket.io/posts/move.js b/src/socket.io/posts/move.js index c6327dbe69..38a885a39d 100644 --- a/src/socket.io/posts/move.js +++ b/src/socket.io/posts/move.js @@ -34,4 +34,4 @@ module.exports = function (SocketPosts) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/posts/votes.js b/src/socket.io/posts/votes.js index c131155c87..6e90bb2ac7 100644 --- a/src/socket.io/posts/votes.js +++ b/src/socket.io/posts/votes.js @@ -89,4 +89,4 @@ module.exports = function (SocketPosts) { SocketPosts.unvote = function (socket, data, callback) { helpers.postCommand(socket, 'unvote', 'voted', '', data, callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/topics/infinitescroll.js b/src/socket.io/topics/infinitescroll.js index e3d4239f33..d1a44178a5 100644 --- a/src/socket.io/topics/infinitescroll.js +++ b/src/socket.io/topics/infinitescroll.js @@ -123,4 +123,4 @@ module.exports = function (SocketTopics) { topics.getTopicsFromSet(data.set, socket.uid, start, stop, callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/topics/move.js b/src/socket.io/topics/move.js index 3fcacde2a0..99b15a7461 100644 --- a/src/socket.io/topics/move.js +++ b/src/socket.io/topics/move.js @@ -69,4 +69,4 @@ module.exports = function (SocketTopics) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/topics/tools.js b/src/socket.io/topics/tools.js index d560a296d2..7a283edbd6 100644 --- a/src/socket.io/topics/tools.js +++ b/src/socket.io/topics/tools.js @@ -129,4 +129,4 @@ module.exports = function (SocketTopics) { topics.tools.orderPinnedTopics(socket.uid, data, callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/topics/unread.js b/src/socket.io/topics/unread.js index f331200e79..e4efb2513f 100644 --- a/src/socket.io/topics/unread.js +++ b/src/socket.io/topics/unread.js @@ -120,4 +120,4 @@ module.exports = function (SocketTopics) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/user/picture.js b/src/socket.io/user/picture.js index a47623c24b..4ddcd79f40 100644 --- a/src/socket.io/user/picture.js +++ b/src/socket.io/user/picture.js @@ -130,4 +130,4 @@ module.exports = function (SocketUser) { callback(null, data.list.pictures); }); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/user/profile.js b/src/socket.io/user/profile.js index ef62090939..14c1593f28 100644 --- a/src/socket.io/user/profile.js +++ b/src/socket.io/user/profile.js @@ -188,4 +188,4 @@ module.exports = function (SocketUser) { }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/user/search.js b/src/socket.io/user/search.js index c4619a28cf..acb857a6d8 100644 --- a/src/socket.io/user/search.js +++ b/src/socket.io/user/search.js @@ -32,4 +32,4 @@ module.exports = function (SocketUser) { }); }; -}; \ No newline at end of file +}; diff --git a/src/socket.io/user/status.js b/src/socket.io/user/status.js index 1c08296725..37e7ac7925 100644 --- a/src/socket.io/user/status.js +++ b/src/socket.io/user/status.js @@ -50,4 +50,4 @@ module.exports = function (SocketUser) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/topics/data.js b/src/topics/data.js index 199393c714..4758e7a085 100644 --- a/src/topics/data.js +++ b/src/topics/data.js @@ -88,4 +88,4 @@ module.exports = function (Topics) { db.deleteObjectField('topic:' + tid, field, callback); }; -}; \ No newline at end of file +}; diff --git a/src/topics/suggested.js b/src/topics/suggested.js index 08c3c24f15..e0049a15a7 100644 --- a/src/topics/suggested.js +++ b/src/topics/suggested.js @@ -77,4 +77,4 @@ module.exports = function (Topics) { ], callback); } -}; \ No newline at end of file +}; diff --git a/src/topics/tags.js b/src/topics/tags.js index 69d0de3332..f7d1b3034c 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -456,4 +456,4 @@ module.exports = function (Topics) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/topics/teaser.js b/src/topics/teaser.js index c8526a981d..617f9660f1 100644 --- a/src/topics/teaser.js +++ b/src/topics/teaser.js @@ -137,4 +137,4 @@ module.exports = function (Topics) { } }); }; -}; \ No newline at end of file +}; diff --git a/src/topics/user.js b/src/topics/user.js index ab56a5f778..b2916a7464 100644 --- a/src/topics/user.js +++ b/src/topics/user.js @@ -21,4 +21,4 @@ module.exports = function (Topics) { Topics.getUids = function (tid, callback) { db.getSortedSetRevRangeByScore('tid:' + tid + ':posters', 0, -1, '+inf', 1, callback); }; -}; \ No newline at end of file +}; diff --git a/src/user/auth.js b/src/user/auth.js index ddbcc57520..968078e651 100644 --- a/src/user/auth.js +++ b/src/user/auth.js @@ -175,4 +175,4 @@ module.exports = function (User) { ], next); }, {batch: 1000}, callback); }; -}; \ No newline at end of file +}; diff --git a/src/user/categories.js b/src/user/categories.js index 77d8cf4338..4188fecf72 100644 --- a/src/user/categories.js +++ b/src/user/categories.js @@ -72,4 +72,4 @@ module.exports = function (User) { }, ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/user/password.js b/src/user/password.js index 093f11a56f..aaad4c2563 100644 --- a/src/user/password.js +++ b/src/user/password.js @@ -44,4 +44,4 @@ module.exports = function (User) { }); }; -}; \ No newline at end of file +}; diff --git a/src/user/posts.js b/src/user/posts.js index 7b7cc7cfbb..1747c803a0 100644 --- a/src/user/posts.js +++ b/src/user/posts.js @@ -102,4 +102,4 @@ module.exports = function (User) { }); }; -}; \ No newline at end of file +}; diff --git a/src/user/topics.js b/src/user/topics.js index 5dd2ac2c5a..fa3cea209b 100644 --- a/src/user/topics.js +++ b/src/user/topics.js @@ -16,4 +16,4 @@ module.exports = function (User) { ], callback); }; -}; \ No newline at end of file +}; diff --git a/src/widgets/admin.js b/src/widgets/admin.js index 113ff80637..68ccd3d7ec 100644 --- a/src/widgets/admin.js +++ b/src/widgets/admin.js @@ -78,4 +78,4 @@ admin.get = function (callback) { }); }; -module.exports = admin; \ No newline at end of file +module.exports = admin; diff --git a/test/helpers/index.js b/test/helpers/index.js index 43c7c26211..cc4460ffbe 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -166,4 +166,4 @@ helpers.copyFile = function (source, target, callback) { cbCalled = true; } } -}; \ No newline at end of file +}; diff --git a/test/mocks/newXhr.js b/test/mocks/newXhr.js index 1e223a8f19..0f7ccee061 100644 --- a/test/mocks/newXhr.js +++ b/test/mocks/newXhr.js @@ -47,4 +47,4 @@ newXhr.XMLHttpRequest = newXhr; cachedXhr.exports = newXhr; module.exports = newXhr; -module.exports.callbacks = callbacks; \ No newline at end of file +module.exports.callbacks = callbacks; diff --git a/test/search-admin.js b/test/search-admin.js index 25fb940adf..97316e6639 100644 --- a/test/search-admin.js +++ b/test/search-admin.js @@ -79,4 +79,4 @@ describe('admin search', function () { done(); }); }); -}); \ No newline at end of file +});