From a0c50781102c83268c4ac311b6653582456cecc5 Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Fri, 8 Dec 2023 09:41:36 +0100 Subject: [PATCH] rearrange condition --- lib/processors/manifestCreator.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/processors/manifestCreator.js b/lib/processors/manifestCreator.js index d82e16a91..09f00c27c 100644 --- a/lib/processors/manifestCreator.js +++ b/lib/processors/manifestCreator.js @@ -561,15 +561,10 @@ async function createManifest( const supportedLocalesArray = Array.from(supportedLocales); supportedLocalesArray.sort(); - let fallbackLocale; - if (supportedLocalesArray.length === 1) { - fallbackLocale = supportedLocalesArray[0]; - } - return { bundleUrl: i18n, supportedLocales: supportedLocalesArray, - fallbackLocale + fallbackLocale: supportedLocalesArray.length === 1 ? supportedLocalesArray[0] : undefined }; }