mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-25 10:14:31 +08:00
style(eslint): fix no-unassigned-vars no-useless-assignment preserve-caught-error (#21175)
* fix: fix no-unassigned-vars * fix: fix preserve-caught-error * fix: fix no-useless-assignment * fix: update variable types for better type safety * fix: replace nullish coalescing with logical OR for limit assignment * fix: add DataItem type import for better type safety
This commit is contained in:
@@ -10,7 +10,7 @@ export default async function identify({ github, context, core }, body, number,
|
||||
const bodyNoCmts = body?.replaceAll(/<!--[\S\s]*?-->/g, '');
|
||||
const m = bodyNoCmts?.match(/```routes\s+([\S\s]*?)```/);
|
||||
core.debug(`match: ${m}`);
|
||||
let routes = null;
|
||||
let routes;
|
||||
|
||||
const issueFacts = {
|
||||
owner: context.repo.owner,
|
||||
|
||||
Reference in New Issue
Block a user