diff --git a/client.go b/client.go index cb2fb69..07ab3e9 100644 --- a/client.go +++ b/client.go @@ -99,7 +99,7 @@ func (d *aivenClient) Do(ctx context.Context, operationID, method, path string, } defer func() { - err = multierror.Append(rsp.Body.Close()) + err = multierror.Append(rsp.Body.Close()).ErrorOrNil() }() b, err := io.ReadAll(rsp.Body)