Skip to content

Commit

Permalink
ci: make golangci-lint happy (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Feb 12, 2021
1 parent d1dfafb commit 975bef3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bolt_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func NewBoltTransport(u *url.URL, l Logger, tss *TopicSelectorStore) (Transport,
}

size := uint64(0)
sizeParameter := q.Get("size")
if sizeParameter != "" {
if sizeParameter := q.Get("size"); sizeParameter != "" {
size, err = strconv.ParseUint(sizeParameter, 10, 64)
if err != nil {
return nil, &ErrTransport{u.Redacted(), fmt.Sprintf(`invalid "size" parameter %q`, sizeParameter), err}
Expand Down Expand Up @@ -180,7 +179,7 @@ func (t *BoltTransport) AddSubscriber(s *Subscriber) error {

t.Lock()
t.subscribers[s] = struct{}{}
toSeq := t.lastSeq
toSeq := t.lastSeq //nolint:ifshort
t.Unlock()

if s.RequestLastEventID != "" {
Expand Down

0 comments on commit 975bef3

Please sign in to comment.