ソースを参照

misc: use default values for parameters

master
Saúl Ibarra Corretgé 5年前
コミット
385669cbb8
1個のファイルの変更1行の追加6行の削除
  1. 1
    6
      react/features/base/tracks/functions.js

+ 1
- 6
react/features/base/tracks/functions.js ファイルの表示

@@ -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') {

読み込み中…
キャンセル
保存