Pārlūkot izejas kodu

misc: use default values for parameters

master
Saúl Ibarra Corretgé 6 gadus atpakaļ
vecāks
revīzija
385669cbb8
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 1
    6
      react/features/base/tracks/functions.js

+ 1
- 6
react/features/base/tracks/functions.js Parādīt failu

70
  * is to execute and from which state such as {@code config} is to be retrieved.
70
  * is to execute and from which state such as {@code config} is to be retrieved.
71
  * @returns {Promise<JitsiLocalTrack[]>}
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
     let { cameraDeviceId, micDeviceId } = options;
74
     let { cameraDeviceId, micDeviceId } = options;
80
 
75
 
81
     if (typeof APP !== 'undefined') {
76
     if (typeof APP !== 'undefined') {

Notiek ielāde…
Atcelt
Saglabāt