cleanup: fix vet and staticcheck failures (#42)

This commit is contained in:
Ian Davis 2021-07-17 11:03:52 +01:00 committed by GitHub
parent 8d129b2f9c
commit b5241a9053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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