Skip to content

Commit

Permalink
client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpe committed Nov 13, 2024
1 parent 4ffd0cf commit c3088c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (c *S3GridClient) SendAuthorizeRequest(statusCode int) (tokenValue string,
resp.Body.Close()

if statusCode != 0 && resp.StatusCode != statusCode {
return "", resp.StatusCode, fmt.Errorf("[ERROR] unexpected status code got: %v expected: %v \n %v", resp.StatusCode, statusCode)
return "", resp.StatusCode, fmt.Errorf("[ERROR] unexpected status code got: %v expected: %v \n %v", statusCode, resp.StatusCode, statusCode)
}

return jsonD.Data, resp.StatusCode, nil
Expand Down

0 comments on commit c3088c7

Please sign in to comment.