Skip to content

Commit

Permalink
Add break statements
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jul 17, 2024
1 parent 15a5dc4 commit 92a1c5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/util/http/rate-limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function getConcurrentRequestsLimit(url: string): number | null {
}

result = limit;
break;
}

return result;
Expand All @@ -79,6 +80,7 @@ export function getThrottleIntervalMs(url: string): number | null {
}

result = limit;
break;
}

return result;
Expand Down

0 comments on commit 92a1c5b

Please sign in to comment.