mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 18:30:53 +08:00
refactor(eslint): add back no-return-await (#11877)
* chore: add back no-return-await * chore: fix action warning * chore: fix all no-return-await
This commit is contained in:
@@ -187,9 +187,9 @@ const normalizeUrl = (url, bypassHostCheck = false) => {
|
||||
* @param {boolean} bypassHostCheck - Whether to bypass host check.
|
||||
* @return {Promise<object>} - An object containing the article and its metadata.
|
||||
*/
|
||||
const fetchArticle = async (ctx, url, bypassHostCheck = false) => {
|
||||
const fetchArticle = (ctx, url, bypassHostCheck = false) => {
|
||||
url = normalizeUrl(url, bypassHostCheck);
|
||||
return await ctx.cache.tryGet(url, async () => {
|
||||
return ctx.cache.tryGet(url, async () => {
|
||||
const response = await got(url);
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user