diff --git a/pkg/daemon/netns_linux.go b/pkg/daemon/netns_linux.go index c8fabea82e45..f4a649b38c8e 100644 --- a/pkg/daemon/netns_linux.go +++ b/pkg/daemon/netns_linux.go @@ -30,7 +30,7 @@ func newNetNS(path string) error { defer func() { // Ensure the mount point is cleaned up on errors if err != nil { - os.RemoveAll(path) + _ = os.RemoveAll(path) } }()