build: fix gosimple lint errors with golangci-lint v1.60.1

This commit is contained in:
Nick Craig-Wood
2024-08-14 17:46:12 +01:00
parent 8d1d096c11
commit 9d5315a944
3 changed files with 3 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ func (api *Client) Call(ctx context.Context, opts *Opts) (resp *http.Response, e
return nil, errors.New("RootURL not set")
}
url += opts.Path
if opts.Parameters != nil && len(opts.Parameters) > 0 {
if len(opts.Parameters) > 0 {
url += "?" + opts.Parameters.Encode()
}
body := readers.NoCloser(opts.Body)