From 13ff486a894d0a82f9cd650c24caa3bcc35f6815 Mon Sep 17 00:00:00 2001 From: chymy Date: Thu, 13 May 2021 11:15:30 +0800 Subject: [PATCH] Remove redundant judgment condition in controlplane/kubeadm/internal/workload_cluster_coredns_test.go Signed-off-by: chymy --- controlplane/kubeadm/internal/workload_cluster_coredns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controlplane/kubeadm/internal/workload_cluster_coredns_test.go b/controlplane/kubeadm/internal/workload_cluster_coredns_test.go index 3feb5362300b..8e6944ab9489 100644 --- a/controlplane/kubeadm/internal/workload_cluster_coredns_test.go +++ b/controlplane/kubeadm/internal/workload_cluster_coredns_test.go @@ -416,7 +416,7 @@ kind: ClusterConfiguration for _, o := range tt.objs { o := o.DeepCopyObject().(client.Object) err := testEnv.Get(ctx, client.ObjectKeyFromObject(o), o) - if err == nil || (err != nil && !apierrors.IsNotFound(err)) { + if err == nil || !apierrors.IsNotFound(err) { return false } }