Sfoglia il codice sorgente

misc: use default values for parameters

master
Saúl Ibarra Corretgé 5 anni fa
parent
commit
385669cbb8
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1
    6
      react/features/base/tracks/functions.js

+ 1
- 6
react/features/base/tracks/functions.js Vedi File

@@ -70,12 +70,7 @@ export async function createLocalPresenterTrack(options, desktopHeight) {
70 70
  * is to execute and from which state such as {@code config} is to be retrieved.
71 71
  * @returns {Promise<JitsiLocalTrack[]>}
72 72
  */
73
-export function createLocalTracksF(
74
-        options,
75
-        firePermissionPromptIsShownEvent,
76
-        store) {
77
-    options || (options = {}); // eslint-disable-line no-param-reassign
78
-
73
+export function createLocalTracksF(options = {}, firePermissionPromptIsShownEvent, store) {
79 74
     let { cameraDeviceId, micDeviceId } = options;
80 75
 
81 76
     if (typeof APP !== 'undefined') {

Loading…
Annulla
Salva