Skip to content

Commit

Permalink
lint: suppress lint warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Apr 1, 2020
1 parent df5a8ae commit 99c21c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion topics/mem/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (sn *node) nonOverlappingSubscribers(publishID uintptr, p *publishes) {
for id, sub := range sn.subs {
if !sub.p.Ops.NL() || id != publishID {
pe := sub.acquire()
if _, ok := (*p)[id]; ok {
if _, ok := (*p)[id]; ok { // nolint: gosimple
(*p)[id] = append((*p)[id], pe)
} else {
(*p)[id] = []*publish{pe}
Expand Down
2 changes: 1 addition & 1 deletion topics/memlockfree/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func nonOverlappingSubscribers(sn *node, publishID uintptr, p *publishes) {

if !sub.p.Ops.NL() || id != publishID {
if pe := sub.acquire(); pe != nil {
if _, ok := (*p)[id]; ok {
if _, ok := (*p)[id]; ok { // nolint: gosimple
(*p)[id] = append((*p)[id], pe)
} else {
(*p)[id] = []*publish{pe}
Expand Down

0 comments on commit 99c21c3

Please sign in to comment.