From 06fafccf0b7a34b235144564a946c98eb9b753bc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:44:50 +0000 Subject: [PATCH] style: auto format --- lib/routes/copernicium/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/copernicium/index.ts b/lib/routes/copernicium/index.ts index 70433dc38b..5edf43c3f3 100644 --- a/lib/routes/copernicium/index.ts +++ b/lib/routes/copernicium/index.ts @@ -10,8 +10,8 @@ export const route: Route = { categories: ['new-media'], radar: [{ source: ['www.copernicium.tw'] }], name: '分类', - example: "/copernicium/环球视角", - parameters: {"category" : "分类名"}, + example: '/copernicium/环球视角', + parameters: { category: '分类名' }, maintainers: ['dzx-dzx'], handler, }; @@ -23,7 +23,7 @@ async function handler(ctx) { ['观点评论', '4_5'], ]); if (!CATEGORY_TO_ARG_MAP.get(ctx.req.param().category)) { - throw new Error("The requested category does not exist or is not supported."); + throw new Error('The requested category does not exist or is not supported.'); } const reqArgs = { args: {