瀏覽代碼

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

Loading…
取消
儲存