explain linter bypasses
This commit is contained in:
parent
356ce3e7f9
commit
ada5d3fcfe
|
@ -69,7 +69,7 @@ func serveDaemon() error {
|
||||||
if d != nil {
|
if d != nil {
|
||||||
return 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()
|
err = daemon.ServeSignals()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("serveDaemon error : %s", err.Error())
|
return fmt.Errorf("serveDaemon error : %s", err.Error())
|
||||||
|
|
|
@ -113,7 +113,7 @@ func (ctx *ApiCtx) Init(cfg string, profile string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
//start the background go-routine
|
//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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue