From 21c30adfecf321a16b62cc3d422372a8fe6905d9 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Fri, 9 Feb 2024 10:36:41 +0100 Subject: [PATCH] fix(logger): convert multierror to err --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)