fix(rest): processRateLimitedPaths use continue instead of return

This commit is contained in:
ITOH
2021-04-13 14:32:47 +02:00
parent 9b11d390e9
commit 2088df100e

View File

@@ -11,7 +11,7 @@ export function processRateLimitedPaths() {
`Running forEach loop in process_rate_limited_paths file.`,
);
// IF THE TIME HAS NOT REACHED CANCEL
if (value.resetTimestamp > now) return;
if (value.resetTimestamp > now) continue;
// RATE LIMIT IS OVER, DELETE THE RATE LIMITER
rest.ratelimitedPaths.delete(key);