ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -14,7 +14,7 @@ var lastUpdateTime = 0;
var terms = {
daily: 'day',
weekly: 'week',
monthly: 'month'
monthly: 'month',
};
popularController.get = function (req, res, next) {
@@ -30,7 +30,7 @@ popularController.get = function (req, res, next) {
day: '[[recent:day]]',
week: '[[recent:week]]',
month: '[[recent:month]]',
alltime: '[[global:header.popular]]'
alltime: '[[global:header.popular]]',
};
if (!req.uid) {
@@ -49,7 +49,7 @@ popularController.get = function (req, res, next) {
'feeds:disableRSS': parseInt(meta.config['feeds:disableRSS'], 10) === 1,
rssFeedUrl: nconf.get('relative_path') + '/popular/' + (req.params.term || 'daily') + '.rss',
title: '[[pages:popular-' + term + ']]',
term: term
term: term,
};
if (req.path.startsWith('/api/popular') || req.path.startsWith('/popular')) {