all: fix nilness issues
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
committed by
Andrew Dunham
parent
c5208f8138
commit
a217f1fccf
@@ -178,7 +178,7 @@ func (li *linuxImpl) parseProcNetFile(r *bufio.Reader, fileBase string) error {
|
||||
// Scratch buffer for making inode strings.
|
||||
inoBuf := make([]byte, 0, 50)
|
||||
|
||||
for err == nil {
|
||||
for {
|
||||
line, err := r.ReadSlice('\n')
|
||||
if err == io.EOF {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user