Skip to content

Commit

Permalink
Trigger linter warn
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Oct 3, 2022
1 parent b12aa64 commit eaee1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/services/grafana/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func (c *Client) GetCurrentUserAccessToken(ctx context.Context) (string, error)
headers.Set("Cookie", strings.Join(cookies, "; "))

var user currentUser
if err := c.do(ctx, http.MethodGet, "/percona-api/user/oauth-token", "", headers, nil, &user); err != nil {
if err := c.do(ctx, "GET", "/percona-api/user/oauth-token", "", headers, nil, &user); err != nil {
var e *clientError
if errors.As(err, &e) && e.ErrorMessage == "Failed to get token" && e.Code == http.StatusInternalServerError {
return "", ErrFailedToGetToken
Expand Down

0 comments on commit eaee1b7

Please sign in to comment.