Skip to content

Commit

Permalink
Use HTTP status constants
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Apr 20, 2021
1 parent 972f673 commit 32d7da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsimple/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (s *OauthService) ExchangeAuthorizationForToken(authorization *ExchangeAuth
}
defer resp.Body.Close()

if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
errorResponse := &ExchangeAuthorizationError{}
err = json.NewDecoder(resp.Body).Decode(errorResponse)
if err != nil {
Expand Down

0 comments on commit 32d7da6

Please sign in to comment.