Skip to content

Commit

Permalink
cleanup: fix vet and staticcheck failures (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
iand authored Jul 17, 2021
1 parent 264c2e7 commit 0b38b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/eventbus/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (b *basicBus) GetAllEventTypes() []reflect.Type {
defer b.lk.RUnlock()

types := make([]reflect.Type, 0, len(b.nodes))
for t, _ := range b.nodes {
for t := range b.nodes {
types = append(types, t)
}
return types
Expand Down

0 comments on commit 0b38b75

Please sign in to comment.