err omit in getProcInodes

This commit is contained in:
better88 2017-07-10 15:03:52 +08:00 committed by GitHub
parent ae1481820a
commit 86af477d1a
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, erro
defer f.Close()
files, err := f.Readdir(max)
if err != nil {
return ret, nil
return ret, err
}
for _, fd := range files {
inodePath := fmt.Sprintf("%s/%d/fd/%s", root, pid, fd.Name())