Add gocritic to golangci-lint config (#9556)

This commit is contained in:
Kris Hicks
2020-12-08 12:47:04 -08:00
committed by GitHub
parent dfcdc9c53d
commit 071f4c7596
17 changed files with 55 additions and 57 deletions

View File

@@ -307,7 +307,8 @@ func (l *LibcontainerExecutor) Shutdown(signal string, grace time.Duration) erro
}
}
} else {
if err := l.container.Signal(os.Kill, true); err != nil {
err := l.container.Signal(os.Kill, true)
if err != nil {
return err
}
}