Merge pull request #2628 from thaJeztah/linting_foo

fix some linting issues
This commit is contained in:
Akihiro Suda
2020-10-06 20:10:40 +09:00
committed by GitHub
3 changed files with 3 additions and 5 deletions
+1
View File
@@ -270,6 +270,7 @@ func RemovePaths(paths map[string]string) (err error) {
}
}
if len(paths) == 0 {
//nolint:ineffassign // done to help garbage collecting: opencontainers/runc#2506
paths = make(map[string]string)
return nil
}
+1
View File
@@ -432,6 +432,7 @@ func setupRlimits(limits []configs.Rlimit, pid int) error {
const _P_PID = 1
//nolint:structcheck,unused
type siginfo struct {
si_signo int32
si_errno int32
+1 -5
View File
@@ -295,11 +295,7 @@ func getIntelRdtRoot() (string, error) {
func isIntelRdtMounted() bool {
_, err := getIntelRdtRoot()
if err != nil {
return false
}
return true
return err == nil
}
type cpuInfoFlags struct {