From 8eaf458bd475238cca9f7b27719b43f01f850b17 Mon Sep 17 00:00:00 2001 From: Tobias Sorn Date: Wed, 23 Dec 2020 10:51:41 +0100 Subject: [PATCH] [FEATURE] manifestCreator: i18n section v22 avoid duplicate check for null because createI18nSection() also performs an existence check --- lib/processors/manifestCreator.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/processors/manifestCreator.js b/lib/processors/manifestCreator.js index 3664c6f2a..68bc526fe 100644 --- a/lib/processors/manifestCreator.js +++ b/lib/processors/manifestCreator.js @@ -505,11 +505,7 @@ async function createManifest(libraryResource, libBundle, descriptorVersion, _in return false; } } - // i18n can be an empty string therefore check for not being null - if (i18n !== null) { - return createI18nSection(i18n, i18nToSupportedLocales); - } - return false; + return createI18nSection(i18n, i18nToSupportedLocales); } // css: