mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
consistent return and sendStatus
This commit is contained in:
@@ -69,8 +69,7 @@ export async function getTopUsers(req: Request, res: Response): Promise<Response
|
||||
|
||||
if (sortType == undefined) {
|
||||
//invalid request
|
||||
res.sendStatus(400);
|
||||
return;
|
||||
return res.sendStatus(400);
|
||||
}
|
||||
|
||||
//setup which sort type to use
|
||||
|
||||
Reference in New Issue
Block a user