Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus committed Aug 8, 2023
1 parent d743e26 commit 8360205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kibana/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (client *Client) DeletePolicy(ctx context.Context, id string) error {
if resp.StatusCode != http.StatusOK {
respBody, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("unable to delete policy; API returned status code [%d] and err reading the response: %v", resp.StatusCode, err)
return fmt.Errorf("unable to delete policy; API returned status code [%d] and error reading response: %w", resp.StatusCode, err)
}
return fmt.Errorf("unable to delete policy; API returned status code [%d] and body [%s]", resp.StatusCode, string(respBody))
}
Expand Down

0 comments on commit 8360205

Please sign in to comment.