lint: add errchecks (#5316)

## Description

Work towards enabling errcheck

ref #5059
This commit is contained in:
Marko
2020-09-04 13:58:03 +02:00
committed by GitHub
parent 59ec3d91e4
commit b8d08b9ef4
43 changed files with 420 additions and 143 deletions

View File

@@ -398,7 +398,10 @@ func newStateWithConfigAndBlockStore(
eventBus := types.NewEventBus()
eventBus.SetLogger(log.TestingLogger().With("module", "events"))
eventBus.Start()
err := eventBus.Start()
if err != nil {
panic(err)
}
cs.SetEventBus(eventBus)
return cs
}