Fix: static check

This commit is contained in:
gVisor bot 2020-08-25 22:36:38 +08:00
parent 03266bfacb
commit b2d27b9a46

View File

@ -257,7 +257,7 @@ func resolveProcessNameByProcSearch(inode, uid int) (string, error) {
continue continue
} }
if bytes.Compare(buffer[:n], socket) == 0 { if bytes.Equal(buffer[:n], socket) {
cmdline, err := ioutil.ReadFile(path.Join(processPath, "cmdline")) cmdline, err := ioutil.ReadFile(path.Join(processPath, "cmdline"))
if err != nil { if err != nil {
return "", err return "", err