Skip to content

Commit

Permalink
fix: syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Sep 25, 2024
1 parent cf149bf commit 698190a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const parseLinkFromHeader = (headers) => {

export const fetchRateLimit = async (options, streamOptions = {}) => {
const now = Date.now()
if (now < options.rateLimitTimestamp ?? 0) {
if (now < (options.rateLimitTimestamp ?? 0)) {
await timeout(options.rateLimitTimestamp - now, streamOptions)
}
options.rateLimitTimestamp = Date.now() + 1000 * options.rateLimit
Expand Down

0 comments on commit 698190a

Please sign in to comment.