Skip to content

Commit

Permalink
fix staticcheck warning
Browse files Browse the repository at this point in the history
ST1005: error strings should not be capitalized (stylecheck)
  • Loading branch information
haya14busa committed Apr 20, 2022
1 parent 7b97a97 commit 242bee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/bitbucket/cloud_api_client.go
Expand Up @@ -114,7 +114,7 @@ func (c *CloudAPIClient) CreateOrUpdateAnnotations(ctx context.Context, req *Ann

func (c *CloudAPIClient) checkAPIError(err error, resp *http.Response, expectedCode int) error {
if err != nil {
return fmt.Errorf("Bitbucket Cloud API error: %w", err)
return fmt.Errorf("bitbucket Cloud API error: %w", err)
}

if resp != nil && resp.StatusCode != expectedCode {
Expand Down
2 changes: 1 addition & 1 deletion service/bitbucket/server_api_client.go
Expand Up @@ -83,7 +83,7 @@ func (c *ServerAPIClient) deleteReport(ctx context.Context, report *ReportReques

func (c *ServerAPIClient) checkAPIError(err error, resp *http.Response, expectedCode int) error {
if err != nil {
return fmt.Errorf("Bitbucket Server API error: %w", err)
return fmt.Errorf("bitbucket Server API error: %w", err)
}

if resp != nil && resp.StatusCode != expectedCode {
Expand Down

0 comments on commit 242bee6

Please sign in to comment.