Skip to content

Commit

Permalink
Minor stylistic refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
armsnyder authored and james-lawrence committed Aug 31, 2019
1 parent c53487f commit a6140ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (api *Client) GetUsersContext(ctx context.Context) (results []User, err err
} else if rateLimitedError, ok := err.(*RateLimitedError); ok {
select {
case <-ctx.Done():
return nil, ctx.Err()
err = ctx.Err()
case <-time.After(rateLimitedError.RetryAfter):
err = nil
}
Expand Down

0 comments on commit a6140ff

Please sign in to comment.