Skip to content

Commit

Permalink
Merge pull request #4604 from chymy/fix-redundant-judge
Browse files Browse the repository at this point in the history
🌱 Remove redundant judgment condition in controlplane/kubeadm/internal/workload_cluster_coredns_test.go
  • Loading branch information
k8s-ci-robot authored May 13, 2021
2 parents 8bd4c50 + 13ff486 commit 05d78d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 05d78d1

Please sign in to comment.