From fde08f1e79c11c848585b384c4b8a27a2e601441 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 19:28:39 +0000 Subject: [PATCH] style: auto format --- lib/v2/gov/sichuan/deyang/mztoday.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/v2/gov/sichuan/deyang/mztoday.js b/lib/v2/gov/sichuan/deyang/mztoday.js index 5eded1a75..d6edbdde7 100644 --- a/lib/v2/gov/sichuan/deyang/mztoday.js +++ b/lib/v2/gov/sichuan/deyang/mztoday.js @@ -92,11 +92,13 @@ const basicInfoDict = { const getInfoUrlList = async (url) => { const response = await got(url); const $ = cheerio.load(response.data); - const infoList = $('div.sl').toArray().map((item) => ({ - title: $('a', item).attr('title'), - url: `${rootUrl}${$('a', item).attr('href')}`, - pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8), - })); + const infoList = $('div.sl') + .toArray() + .map((item) => ({ + title: $('a', item).attr('title'), + url: `${rootUrl}${$('a', item).attr('href')}`, + pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8), + })); return infoList; };