Quellcode durchsuchen

[eslint] no-unused-expressions

dev1
Lyubo Marinov vor 8 Jahren
Ursprung
Commit
eacd244218
4 geänderte Dateien mit 7 neuen und 5 gelöschten Zeilen
  1. 7
    0
      .eslintrc.js
  2. 0
    1
      JitsiConference.js
  3. 0
    3
      modules/settings/Settings.js
  4. 0
    1
      modules/xmpp/moderator.js

+ 7
- 0
.eslintrc.js Datei anzeigen

@@ -112,6 +112,13 @@ module.exports = {
112 112
         'no-self-compare': 2,
113 113
         'no-sequences': 2,
114 114
         'no-unmodified-loop-condition': 2,
115
+        'no-unused-expressions': [
116
+            'error',
117
+            {
118
+                'allowShortCircuit': true,
119
+                'allowTernary': true
120
+            }
121
+        ],
115 122
         'no-unused-labels': 2,
116 123
         'no-useless-call': 2,
117 124
         'no-void': 2,

+ 0
- 1
JitsiConference.js Datei anzeigen

@@ -59,7 +59,6 @@ function JitsiConference(options) {
59 59
     this.dtmfManager = null;
60 60
     this.somebodySupportsDTMF = false;
61 61
     this.authEnabled = false;
62
-    this.authIdentity;
63 62
     this.startAudioMuted = false;
64 63
     this.startVideoMuted = false;
65 64
     this.startMutedPolicy = {audio: false, video: false};

+ 0
- 3
modules/settings/Settings.js Datei anzeigen

@@ -50,9 +50,6 @@ function generateCallStatsUsername() {
50 50
 
51 51
 class Settings {
52 52
     constructor() {
53
-        this.userId;
54
-        this.callStatsUserName;
55
-
56 53
         const localStorage = getLocalStorage();
57 54
 
58 55
         if (localStorage) {

+ 0
- 1
modules/xmpp/moderator.js Datei anzeigen

@@ -46,7 +46,6 @@ function Moderator(roomName, xmpp, emitter, options) {
46 46
     this.eventEmitter = emitter;
47 47
 
48 48
     this.connection = this.xmppService.connection;
49
-    this.focusUserJid;
50 49
     // FIXME:
51 50
     // Message listener that talks to POPUP window
52 51
     function listener(event) {

Laden…
Abbrechen
Speichern