From 46fd8fce45cfbbe5681a44872602da6daea80cf6 Mon Sep 17 00:00:00 2001 From: Michael Gugino Date: Wed, 23 Oct 2019 11:20:40 -0400 Subject: [PATCH] kubectl: remove unreachable code This code cannot be reached and causes some external linters to fail. --- staging/src/k8s.io/kubectl/pkg/drain/drain.go | 1 - 1 file changed, 1 deletion(-) diff --git a/staging/src/k8s.io/kubectl/pkg/drain/drain.go b/staging/src/k8s.io/kubectl/pkg/drain/drain.go index a941b74935a..fd0e7f443dd 100644 --- a/staging/src/k8s.io/kubectl/pkg/drain/drain.go +++ b/staging/src/k8s.io/kubectl/pkg/drain/drain.go @@ -298,7 +298,6 @@ func waitForDelete(ctx context.Context, pods []corev1.Pod, interval, timeout tim default: return false, nil } - return false, nil } return true, nil })