瀏覽代碼

JSHint bitching about wrapped or statements

JC Brand 10 年之前
父節點
當前提交
fadbf2d159
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      converse.js

+ 2 - 5
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;