From 248d60b27914786194e7f2a8c96e287ddd2f238a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Wed, 10 Jan 2024 16:11:51 +0100 Subject: [PATCH] #0: ran lint:fix and applied manual fix based on it --- lib/Retriever.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Retriever.js b/lib/Retriever.js index bbfb0c0d6..11e54ceae 100644 --- a/lib/Retriever.js +++ b/lib/Retriever.js @@ -66,8 +66,9 @@ class Retriever { const subTypeArr = deployOrder[type]; // if types were added by getMetadataHierachy() for caching, make sure the key-list is set to [null] for them which will retrieve all // if we have a subtype, we need to find the correct key-list for it - typeKeyMap[type] = typeKeyMap[type] || - typeKeyMap[Object.keys(typeKeyMap).find((k) => k.startsWith(type + '-'))] || [null]; + typeKeyMap[type] ||= typeKeyMap[ + Object.keys(typeKeyMap).find((k) => k.startsWith(type + '-')) + ] || [null]; // add client to metadata process class instead of passing every time MetadataTypeInfo[type].client = auth.getSDK(this.buObject);