From 385669cbb8f8bd78ccb4eb2f4bdcb32fcf6f237e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 28 Jan 2020 11:04:46 +0100 Subject: [PATCH] misc: use default values for parameters --- react/features/base/tracks/functions.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/react/features/base/tracks/functions.js b/react/features/base/tracks/functions.js index 203f94387..1d7e78a2a 100644 --- a/react/features/base/tracks/functions.js +++ b/react/features/base/tracks/functions.js @@ -70,12 +70,7 @@ export async function createLocalPresenterTrack(options, desktopHeight) { * is to execute and from which state such as {@code config} is to be retrieved. * @returns {Promise} */ -export function createLocalTracksF( - options, - firePermissionPromptIsShownEvent, - store) { - options || (options = {}); // eslint-disable-line no-param-reassign - +export function createLocalTracksF(options = {}, firePermissionPromptIsShownEvent, store) { let { cameraDeviceId, micDeviceId } = options; if (typeof APP !== 'undefined') {