From 1600de0eed38cf389b2b3d9598067047ce8fe629 Mon Sep 17 00:00:00 2001 From: Neko Aria <990879119@qq.com> Date: Fri, 25 Oct 2024 11:50:25 +0800 Subject: [PATCH] refactor(route/bangumi): remove unnecessary type defaulting (#17293) (#17300) --- lib/routes/bangumi.tv/other/followrank.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/routes/bangumi.tv/other/followrank.ts b/lib/routes/bangumi.tv/other/followrank.ts index 52d76918c07ded..08e6e0f2dd1a57 100644 --- a/lib/routes/bangumi.tv/other/followrank.ts +++ b/lib/routes/bangumi.tv/other/followrank.ts @@ -27,10 +27,7 @@ export const route: Route = { }; async function handler(ctx) { - let type = ctx.req.param('type'); - if (!type || type === 'tv') { - type = 'anime'; - } + const type = ctx.req.param('type'); const url = `https://bgm.tv/${type}`; const response = await ofetch(url);