Skip to content

Commit

Permalink
shorten if and and conditional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
vgoodric committed Jul 23, 2024
1 parent 06b0aab commit 72d8885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,8 +950,8 @@ export async function init(enablements = {}) {
};
manifests = manifests.concat(await combineMepSources(pzn, promo, mepParam));
}
if (target === true && manifests.length) {
manifests.forEach((manifest) => {
if (target === true) {
manifests?.forEach((manifest) => {
if (manifest.disabled) return;
const localizedURL = localizeLink(manifest.manifestPath);
loadLink(localizedURL, { as: 'fetch', crossorigin: 'anonymous', rel: 'preload' });
Expand Down

0 comments on commit 72d8885

Please sign in to comment.