Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Oct 30, 2024
1 parent 08924fa commit 6ac2981
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kibana/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,14 @@ func (client *Client) CreateFleetProxy(ctx context.Context, req ProxiesRequest)
if err != nil {
return ProxiesResponse{}, err
}

defer r.Body.Close()

resp := ProxiesResponse{}
err = readJSONResponse(r, &resp)
if err != nil {
return ProxiesResponse{}, fmt.Errorf("failes parsing response")
}

Check failure on line 733 in kibana/fleet.go

View workflow job for this annotation

GitHub Actions / lint (windows)

File is not `goimports`-ed (goimports)
return resp, nil
}

Expand Down

0 comments on commit 6ac2981

Please sign in to comment.