Skip to content
4 changes: 0 additions & 4 deletions containers/container.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package containers

import (
"fmt"
"io"
"log"
"os"
Expand Down Expand Up @@ -174,9 +173,6 @@ func NewContainer(id ContainerID, cg *cgroup.Cgroup, md *ContainerMetadata, pid
// %s -> pod name

split := strings.Split(string(id), "/")
if len(split) != 3 {
return nil, fmt.Errorf("invalid container id %s", id)
}
namespace := split[1]
podName := split[2]

Expand Down