explain linter bypasses

This commit is contained in:
Thibault bui Koechlin 2020-05-22 10:12:35 +02:00
parent 356ce3e7f9
commit ada5d3fcfe
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ func serveDaemon() error {
if d != nil {
return nil
}
defer daemonCTX.Release() //nolint:errcheck
defer daemonCTX.Release() //nolint:errcheck // won't bother checking this error in defer statement
err = daemon.ServeSignals()
if err != nil {
return fmt.Errorf("serveDaemon error : %s", err.Error())

View file

@ -113,7 +113,7 @@ func (ctx *ApiCtx) Init(cfg string, profile string) error {
return err
}
//start the background go-routine
go ctx.pushLoop() //nolint:errcheck
go ctx.pushLoop() //nolint:errcheck // runs into the background, we can't check error with chan or such
return nil
}