Skip to content

Commit

Permalink
refactor(route/bangumi): remove unnecessary type defaulting (#17293) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria authored Oct 25, 2024
1 parent 2c46c71 commit 1600de0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/routes/bangumi.tv/other/followrank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1600de0

Please sign in to comment.