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:
parent
1abf9e57d2
commit
c64f012252
10
filter.go
10
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)
|
||||
|
Loading…
Reference in New Issue
Block a user