From 505ccae7628d0f27aab0dc1092a3c744faf0b32a Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 30 Oct 2023 15:21:09 -0700 Subject: [PATCH] refactor(sidebar): shorten syntax Signed-off-by: Varun Patil --- src/components/Sidebar.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 2428b5b5..a790b4d7 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -66,17 +66,8 @@ export default defineComponent({ // TODO: remove when we have a proper fileinfo standalone library // original scripts are loaded from // https://github.com/nextcloud/server/blob/5bf3d1bb384da56adbf205752be8f840aac3b0c5/lib/private/legacy/template.php#L120-L122 - Object.assign( - globalThis.OCA.Files, - { - App: { - fileList: { - filesClient: (globalThis.OC.Files).getClient(), - }, - }, - }, - globalThis.OCA.Files, - ); + const filesClient = (globalThis.OC.Files).getClient(); + Object.assign(globalThis.OCA.Files, { App: { fileList: { filesClient } } }, globalThis.OCA.Files); } },