fix lint warnings

This commit is contained in:
Darien Raymond
2018-05-31 11:55:11 +02:00
parent fe3ddb0ef5
commit adade2bffd
19 changed files with 159 additions and 80 deletions

View File

@@ -67,7 +67,7 @@ func (d *syncDispatcher) Set(disp Dispatcher) {
d.Lock()
defer d.Unlock()
common.Close(d.Dispatcher)
common.Close(d.Dispatcher) // nolint: errorcheck
d.Dispatcher = disp
}
@@ -126,6 +126,6 @@ func (r *syncRouter) Set(router Router) {
r.Lock()
defer r.Unlock()
common.Close(r.Router)
common.Close(r.Router) // nolint: errcheck
r.Router = router
}