Skip to content

Commit

Permalink
refactor: minor, use http.StatusOK instead of hard-coded 200
Browse files Browse the repository at this point in the history
  • Loading branch information
HandOfGod94 committed Oct 15, 2023
1 parent 31d5c53 commit 12984bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jira_changelog/jira/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (a *Authenticator) callbackHandler(w http.ResponseWriter, r *http.Request)
a.oauthToken = tok

resp, err := a.Client().Get("https://api.atlassian.com/oauth/token/accessible-resources")
if err != nil || resp.StatusCode != 200 {
if err != nil || resp.StatusCode != http.StatusOK {
slog.Error("Failed to fetch accessible-resource from jira", "error", err)
slog.Error("Response information", "response_status", resp.Status)
panic(err)
Expand Down

0 comments on commit 12984bd

Please sign in to comment.