mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
ESlint no-mixed-operators
This commit is contained in:
@@ -64,7 +64,8 @@ module.exports = function (Topics) {
|
||||
};
|
||||
|
||||
Topics.unreadCutoff = function () {
|
||||
return Date.now() - (parseInt(meta.config.unreadCutoff, 10) || 2) * 86400000;
|
||||
var cutoff = parseInt(meta.config.unreadCutoff, 10) || 2;
|
||||
return Date.now() - (cutoff * 86400000);
|
||||
};
|
||||
|
||||
Topics.getUnreadTids = function (cid, uid, filter, callback) {
|
||||
|
||||
Reference in New Issue
Block a user