Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 31, 2023
1 parent 332c209 commit ef7546d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/v2/epicgames/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ module.exports = async (ctx) => {
isBundles = true;
contentUrl = `${contentBaseUrl}/bundles/`;
}
const linkSlug = item.catalogNs.mappings && item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings && item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.productSlug ? item.productSlug : item.urlSlug;
const linkSlug =
item.catalogNs.mappings && item.catalogNs.mappings.length > 0
? item.catalogNs.mappings[0].pageSlug
: item.offerMappings && item.offerMappings.length > 0
? item.offerMappings[0].pageSlug
: item.productSlug
? item.productSlug
: item.urlSlug;
link += linkSlug;
contentUrl += linkSlug;
let description = item.description;
Expand Down

0 comments on commit ef7546d

Please sign in to comment.