Skip to content

Commit

Permalink
[FEATURE] manifestCreator: i18n section v22
Browse files Browse the repository at this point in the history
avoid duplicate check for null because createI18nSection()
also performs an existence check
  • Loading branch information
tobiasso85 committed Dec 23, 2020
1 parent 97c295e commit 8eaf458
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/processors/manifestCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8eaf458

Please sign in to comment.