1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-24 08:22:42 +02:00

fix: resolve nogo tautological linting error (#364)

This commit is contained in:
cameron-stripe 2021-03-17 03:39:59 -04:00 committed by GitHub
parent 1abf9e57d2
commit c64f012252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,13 +130,11 @@ func (fs *FilterService) GetListWithContext(ctx context.Context) ([]*Filter, *Re
return nil, nil, err return nil, nil, err
} }
if options != nil { q, err := query.Values(options)
q, err := query.Values(options) if err != nil {
if err != nil { return nil, nil, err
return nil, nil, err
}
req.URL.RawQuery = q.Encode()
} }
req.URL.RawQuery = q.Encode()
filters := []*Filter{} filters := []*Filter{}
resp, err := fs.client.Do(req, &filters) resp, err := fs.client.Do(req, &filters)