From b1ca5739351daffea3a2819ef2c9157b0a75f0b2 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 6 Jan 2014 09:50:04 -0700 Subject: [PATCH] Just a couple silly things --- builds/4chan-X.user.js | 6 +----- builds/crx/script.js | 6 +----- src/Monitoring/Unread.coffee | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index f7a529dfe..e656d3dc9 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9511,11 +9511,7 @@ threadID: thread.ID, postID: ID }; - if (QR.db.get(data)) { - return true; - } else { - return false; - } + return (QR.db.get(data) ? true : false); } : function() { return false; }; diff --git a/builds/crx/script.js b/builds/crx/script.js index a8870f676..2c30a7514 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9494,11 +9494,7 @@ threadID: thread.ID, postID: ID }; - if (QR.db.get(data)) { - return true; - } else { - return false; - } + return (QR.db.get(data) ? true : false); } : function() { return false; }; diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 1632c3347..85bdf3903 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -14,7 +14,7 @@ Unread = boardID: board.ID threadID: thread.ID postID: ID - return if QR.db.get data then true else false + return (if QR.db.get data then true else false) else -> return false @@ -158,7 +158,7 @@ Unread = saveLastReadPost: $.debounce 2 * $.SECOND, -> return if Unread.thread.isDead Unread.db.set - boardID: Unread.thread.board.ID + boardID: Unread.thread.board.ID threadID: Unread.thread.ID val: Unread.lastReadPost