From affbabb9376a9d35d4e1ae5a1c249b4b722b257c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:32:34 +0000 Subject: [PATCH] style: auto format --- lib/v2/epicgames/index.js | 8 ++++---- lib/v2/science/utils.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/v2/epicgames/index.js b/lib/v2/epicgames/index.js index 3f217fba6..a12a113ee 100644 --- a/lib/v2/epicgames/index.js +++ b/lib/v2/epicgames/index.js @@ -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; diff --git a/lib/v2/science/utils.js b/lib/v2/science/utils.js index 27eb2418c..42a4f3fc1 100644 --- a/lib/v2/science/utils.js +++ b/lib/v2/science/utils.js @@ -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,