From fadbf2d15931776678be5a63d54e872768e13c5b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 20 Dec 2014 10:17:20 +0100 Subject: [PATCH] JSHint bitching about wrapped or statements --- converse.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/converse.js b/converse.js index f0122c294..02f603aa8 100644 --- a/converse.js +++ b/converse.js @@ -3228,12 +3228,9 @@ showInRoster: function () { var chatStatus = this.get('chat_status'); - if ((converse.show_only_online_users && chatStatus !== 'online') - || (converse.hide_offline_users && chatStatus === 'offline')) { + if ((converse.show_only_online_users && chatStatus !== 'online') || (converse.hide_offline_users && chatStatus === 'offline')) { // If pending or requesting, show - if ((this.get('ask') === 'subscribe') - || (this.get('subscription') === 'from') - || (this.get('requesting') === true)) { + if ((this.get('ask') === 'subscribe') || (this.get('subscription') === 'from') || (this.get('requesting') === true)) { return true; } return false;