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 Nov 14, 2023
1 parent f022d27 commit affbabb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/v2/epicgames/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ module.exports = async (ctx) => {
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;
? item.offerMappings[0].pageSlug
: item.productSlug
? item.productSlug
: item.urlSlug;
link += linkSlug;
contentUrl += linkSlug;
let description = item.description;
Expand Down
8 changes: 4 additions & 4 deletions lib/v2/science/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const fetchDesc = (list, browser, tryGet) =>
const content = $('.news-article-content--featured').length
? $('.news-article-content--featured').html()
: $('.news-article-content').length
? $('.news-article-content').html()
: $('.info-panel__formats a.btn__request-access').length || $('.info-panel__formats a.btn--access').length
? ''
: $('section#bodymatter').html();
? $('.news-article-content').html()
: $('.info-panel__formats a.btn__request-access').length || $('.info-panel__formats a.btn--access').length
? ''
: $('section#bodymatter').html();

item.description = art(path.join(__dirname, 'templates/article.art'), {
abs: abstract,
Expand Down

0 comments on commit affbabb

Please sign in to comment.