From 83602050dbbff9d5e697cb88dad243e3b5f23ea2 Mon Sep 17 00:00:00 2001 From: Aleksandr Maus Date: Tue, 8 Aug 2023 09:11:57 -0400 Subject: [PATCH] Make linter happy --- kibana/fleet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana/fleet.go b/kibana/fleet.go index 07ef8215..f5109989 100644 --- a/kibana/fleet.go +++ b/kibana/fleet.go @@ -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)) }