diff --git a/libcontainer/user/user.go b/libcontainer/user/user.go index 984466d1a..198c49367 100644 --- a/libcontainer/user/user.go +++ b/libcontainer/user/user.go @@ -197,7 +197,6 @@ func ParseGroupFilter(r io.Reader, filter func(Group) bool) ([]Group, error) { for { var line []byte line, isPrefix, err = rd.ReadLine() - if err != nil { // We should return no error if EOF is reached // without a match.