Browse Source

Don't use no double non-positives.

dev1
Boris Grozev 9 years ago
parent
commit
ce010aba1c
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      modules/connectivity/ConnectionQuality.js

+ 4
- 4
modules/connectivity/ConnectionQuality.js View File

@@ -138,16 +138,16 @@ export default class ConnectionQuality {
138 138
     /**
139 139
      * Updates the local statistics
140 140
      * @param data new statistics
141
-     * @param dontUpdateLocalConnectionQuality {boolean} if true -
142
-     * localConnectionQuality wont be recalculated.
141
+     * @param updateLocalConnectionQuality {boolean} weather to recalculate
142
+     * localConnectionQuality or not.
143 143
      * @param videoType the local video type
144 144
      * @param isMuted current state of local video, whether it is muted
145 145
      * @param resolution the current resolution used by local video
146 146
      */
147
-    updateLocalStats(data, dontUpdateLocalConnectionQuality,
147
+    updateLocalStats(data, updateLocalConnectionQuality,
148 148
                   videoType, isMuted, resolution) {
149 149
             this.localStats = data;
150
-            if(!dontUpdateLocalConnectionQuality) {
150
+            if(updateLocalConnectionQuality) {
151 151
                 let val = this._getNewQualityValue(
152 152
                     this.localStats,
153 153
                     this.localConnectionQuality,

Loading…
Cancel
Save