ESlint one-var, fix comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 20:20:42 -07:00
parent bc1d70c126
commit 2ba46808a1
109 changed files with 774 additions and 709 deletions

View File

@@ -373,8 +373,8 @@ var utils = require('../public/src/utils');
};
Notifications.prune = function () {
var week = 604800000,
numPruned = 0;
var week = 604800000;
var numPruned = 0;
var cutoffTime = Date.now() - week;
@@ -411,13 +411,17 @@ var utils = require('../public/src/utils');
Notifications.merge = function (notifications, callback) {
// When passed a set of notification objects, merge any that can be merged
var mergeIds = [
'notifications:upvoted_your_post_in',
'notifications:user_started_following_you',
'notifications:user_posted_to',
'notifications:user_flagged_post_in',
'new_register',
],
isolated, differentiators, differentiator, modifyIndex, set;
'notifications:upvoted_your_post_in',
'notifications:user_started_following_you',
'notifications:user_posted_to',
'notifications:user_flagged_post_in',
'new_register',
];
var isolated;
var differentiators;
var differentiator;
var modifyIndex;
var set;
notifications = mergeIds.reduce(function (notifications, mergeId) {
isolated = notifications.filter(function (notifObj) {