Sfoglia il codice sorgente

ref(base/connection/actions.native): JitsiConnection.connect returns void

Do not return anything from JitsiConnection.connect, because it's not
a promise and returns void. Doing so is confusing to the reader.
master
paweldomas 6 anni fa
parent
commit
e8e70d9d27
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      react/features/base/connection/actions.native.js

+ 1
- 1
react/features/base/connection/actions.native.js Vedi File

@@ -104,7 +104,7 @@ export function connect(id: ?string, password: ?string) {
104 104
             JitsiConnectionEvents.CONNECTION_FAILED,
105 105
             _onConnectionFailed);
106 106
 
107
-        return connection.connect({
107
+        connection.connect({
108 108
             id,
109 109
             password
110 110
         });

Loading…
Annulla
Salva