JSHint bitching about wrapped or statements

This commit is contained in:
JC Brand 2014-12-20 10:17:20 +01:00
parent 6ea9d1771e
commit fadbf2d159

View File

@ -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;