explain linter bypasses
This commit is contained in:
parent
356ce3e7f9
commit
ada5d3fcfe
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue