Skip to content

Node.js based forum software built for the modern web

minor tweak to notif filter :)

Baris Usaklicc0fe66e3e3f
diff --git a/src/user.js b/src/user.js
index 43b5dfdb6c..f988d105ec 100644
--- a/src/user.js
+++ b/src/user.js
@@ -1010,8 +1010,7 @@ var utils = require('./../public/src/utils.js'),
});
}, function(err, notifs) {
notifs = notifs.filter(function(notif) {
- if (notif !== null) return true;
- else return false;
+ return notif !== null;
}).sort(function(a, b) {
return parseInt(b.datetime, 10) - parseInt(a.datetime, 10);
}).map(function(notif) {