refactor: remove unnecessary return in min/max function

This commit is contained in:
anatawa12 2024-06-14 17:42:06 +09:00
parent 3eb1875804
commit 4af9c90d12
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 0 additions and 4 deletions

View File

@ -61,8 +61,6 @@ export class RateLimiterService {
if (info.remaining === 0) {
// eslint-disable-next-line no-throw-literal
throw { code: 'BRIEF_REQUEST_INTERVAL', info };
} else {
return;
}
}
};
@ -80,8 +78,6 @@ export class RateLimiterService {
if (info.remaining === 0) {
// eslint-disable-next-line no-throw-literal
throw { code: 'RATE_LIMIT_EXCEEDED', info };
} else {
return;
}
}
};