瀏覽代碼

Don't use no double non-positives.

dev1
Boris Grozev 9 年之前
父節點
當前提交
ce010aba1c
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      modules/connectivity/ConnectionQuality.js

+ 4
- 4
modules/connectivity/ConnectionQuality.js 查看文件

138
     /**
138
     /**
139
      * Updates the local statistics
139
      * Updates the local statistics
140
      * @param data new statistics
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
      * @param videoType the local video type
143
      * @param videoType the local video type
144
      * @param isMuted current state of local video, whether it is muted
144
      * @param isMuted current state of local video, whether it is muted
145
      * @param resolution the current resolution used by local video
145
      * @param resolution the current resolution used by local video
146
      */
146
      */
147
-    updateLocalStats(data, dontUpdateLocalConnectionQuality,
147
+    updateLocalStats(data, updateLocalConnectionQuality,
148
                   videoType, isMuted, resolution) {
148
                   videoType, isMuted, resolution) {
149
             this.localStats = data;
149
             this.localStats = data;
150
-            if(!dontUpdateLocalConnectionQuality) {
150
+            if(updateLocalConnectionQuality) {
151
                 let val = this._getNewQualityValue(
151
                 let val = this._getNewQualityValue(
152
                     this.localStats,
152
                     this.localStats,
153
                     this.localConnectionQuality,
153
                     this.localConnectionQuality,

Loading…
取消
儲存