diff --git a/lib/routes/e-hentai/index.tsx b/lib/routes/e-hentai/index.tsx index 79fc90a4e..fb5c2073a 100644 --- a/lib/routes/e-hentai/index.tsx +++ b/lib/routes/e-hentai/index.tsx @@ -50,7 +50,7 @@ async function handler(ctx) { .toArray() .map((tag) => $(tag).attr('title').replace(/^:/, '')), description: needImages ? '' : ``, - enclosure_url: needTorrents && (item.find('div.gldown a img[title="Show torrents"]').length > 0) ? item.find('.gldown a').attr('href') : undefined, + enclosure_url: needTorrents && item.find('div.gldown a img[title="Show torrents"]').length > 0 ? item.find('.gldown a').attr('href') : undefined, }; }); diff --git a/lib/routes/meteor/index.ts b/lib/routes/meteor/index.ts index 819750214..b82f93674 100644 --- a/lib/routes/meteor/index.ts +++ b/lib/routes/meteor/index.ts @@ -59,7 +59,7 @@ async function handler(ctx) { return { title: `${board === 'all' ? '全部看板' : boardInfo.title} | Meteor 學生社群`, description: board === 'all' ? null : boardInfo.feedDescription, - image: (board === 'all') || (boardInfo.imgUrl === 'not_set') ? null : boardInfo.imgUrl, + image: board === 'all' || boardInfo.imgUrl === 'not_set' ? null : boardInfo.imgUrl, link: `${board === 'all' ? `${baseUrl}/board/all` : boardInfo.link}/new`, item: items, }; diff --git a/lib/routes/nowcoder/jobcenter.ts b/lib/routes/nowcoder/jobcenter.ts index d2fcc2b36..0b9d9f628 100644 --- a/lib/routes/nowcoder/jobcenter.ts +++ b/lib/routes/nowcoder/jobcenter.ts @@ -96,7 +96,7 @@ async function handler(ctx) { ); return { - title: `${ctx.req.param('recruitType') && (ctx.req.param('recruitType') === '2') ? '社招广场' : '实习广场'} - 牛客网`, + title: `${ctx.req.param('recruitType') && ctx.req.param('recruitType') === '2' ? '社招广场' : '实习广场'} - 牛客网`, link: rootUrl, item: items, }; diff --git a/lib/routes/pianyuan/search.ts b/lib/routes/pianyuan/search.ts index 6e5f1b882..7262811a4 100644 --- a/lib/routes/pianyuan/search.ts +++ b/lib/routes/pianyuan/search.ts @@ -44,7 +44,11 @@ async function handler(ctx) { const single = await cache.tryGet(link, async () => { const res = await utils.request(link, cache); const content = load(res.data); - detailLinks.push(...content('.ico.ico_bt').toArray().map((a) => $(a).attr('href'))); + detailLinks.push( + ...content('.ico.ico_bt') + .toArray() + .map((a) => $(a).attr('href')) + ); }); return single; })