Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jul 20, 2024
1 parent fb0578c commit b883ef0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func (r *unkeyRateLimiterNewInit) Ratelimit(ctx context.Context, identifier stri
if r.Timeout != nil {
return r.Timeout.Fallback, fmt.Errorf("unexpected status code: %v, body: %v using Fallback %v", res.StatusCode, string(body), r.Timeout.Fallback)
}


return providers.RateLimitResult{}, fmt.Errorf("unexpected status code: %v, body: %v using Fallback %v", res.StatusCode, string(body), nil)
}
Expand All @@ -102,7 +101,7 @@ func (r *unkeyRateLimiterNewInit) Ratelimit(ctx context.Context, identifier stri
if err != nil {
return providers.RateLimitResult{}, err
}

return apiResponse, nil
}

Expand Down

0 comments on commit b883ef0

Please sign in to comment.