From 69e1f58aa002d9f3b307a4c0ba3c32bff9741bc9 Mon Sep 17 00:00:00 2001 From: Pedro Beschorner Marin <pedrobmarin@gmail.com> Date: Sun, 9 May 2021 14:38:03 -0300 Subject: [PATCH] refactor(closed captions): useless conditional This use of variable 'ownerId' always evaluates to true. --- .../imports/ui/components/captions/pad/service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/captions/pad/service.js b/bigbluebutton-html5/imports/ui/components/captions/pad/service.js index 46d81b2004..dc941683f6 100644 --- a/bigbluebutton-html5/imports/ui/components/captions/pad/service.js +++ b/bigbluebutton-html5/imports/ui/components/captions/pad/service.js @@ -25,7 +25,7 @@ const getPadURL = (padId, readOnlyPadId, ownerId) => { const userId = Auth.userID; const params = getPadParams(); let url; - if (!ownerId || (ownerId && userId === ownerId)) { + if (!ownerId || userId === ownerId) { url = Auth.authenticateURL(`${NOTE_CONFIG.url}/p/${padId}?${params}`); } else { url = Auth.authenticateURL(`${NOTE_CONFIG.url}/p/${readOnlyPadId}?${params}`); -- GitLab