From 12984bd1cb21d28f926715affac32af214fa30e7 Mon Sep 17 00:00:00 2001 From: Gahan Rakholia Date: Sun, 15 Oct 2023 19:20:10 +0530 Subject: [PATCH] refactor: minor, use http.StatusOK instead of hard-coded 200 --- pkg/jira_changelog/jira/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/jira_changelog/jira/auth.go b/pkg/jira_changelog/jira/auth.go index a49d271..6840ca4 100644 --- a/pkg/jira_changelog/jira/auth.go +++ b/pkg/jira_changelog/jira/auth.go @@ -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)