Przeglądaj źródła

fix(JitsiConference) simplify code

release-8443
Saúl Ibarra Corretgé 1 rok temu
rodzic
commit
7e34520461
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1
    3
      JitsiConference.js

+ 1
- 3
JitsiConference.js Wyświetl plik

@@ -2478,9 +2478,7 @@ JitsiConference.prototype.dial = function(number) {
2478 2478
         return this.room.dial(number);
2479 2479
     }
2480 2480
 
2481
-    return new Promise((resolve, reject) => {
2482
-        reject(new Error('The conference is not created yet!'));
2483
-    });
2481
+    return Promise.reject(new Error('The conference is not created yet!'));
2484 2482
 };
2485 2483
 
2486 2484
 /**

Ładowanie…
Anuluj
Zapisz