Turn on More linters

- misspell
    - prealloc
    - unparam
    - nakedret

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-06-11 14:40:38 -04:00
parent 3f026eb6a6
commit 200cfa41a4
74 changed files with 296 additions and 435 deletions

View File

@ -39,7 +39,7 @@ func (c *Container) Init(ctx context.Context) (err error) {
}
// don't recursively start
if err := c.checkDependenciesAndHandleError(ctx); err != nil {
if err := c.checkDependenciesAndHandleError(); err != nil {
return err
}
@ -146,7 +146,7 @@ func (c *Container) RestartWithTimeout(ctx context.Context, timeout uint) (err e
}
}
if err = c.checkDependenciesAndHandleError(ctx); err != nil {
if err = c.checkDependenciesAndHandleError(); err != nil {
return err
}