From c64f012252e21c89643cefa27fe3b5dcee7b89e8 Mon Sep 17 00:00:00 2001 From: cameron-stripe <39918076+cameron-stripe@users.noreply.github.com> Date: Wed, 17 Mar 2021 03:39:59 -0400 Subject: [PATCH] fix: resolve nogo tautological linting error (#364) --- filter.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/filter.go b/filter.go index 12ebe88..f40f3a5 100644 --- a/filter.go +++ b/filter.go @@ -130,13 +130,11 @@ func (fs *FilterService) GetListWithContext(ctx context.Context) ([]*Filter, *Re return nil, nil, err } - if options != nil { - q, err := query.Values(options) - if err != nil { - return nil, nil, err - } - req.URL.RawQuery = q.Encode() + q, err := query.Values(options) + if err != nil { + return nil, nil, err } + req.URL.RawQuery = q.Encode() filters := []*Filter{} resp, err := fs.client.Do(req, &filters)