From b5ca12015211cf30e8258c7ce39561af84ef5f52 Mon Sep 17 00:00:00 2001 From: hoyhbx Date: Wed, 3 Aug 2022 12:59:59 -0500 Subject: [PATCH] remove unnecessary checking --- pkg/apis/pingcap/v1alpha1/tidbcluster_component.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/apis/pingcap/v1alpha1/tidbcluster_component.go b/pkg/apis/pingcap/v1alpha1/tidbcluster_component.go index 2c811016e8c..c9bb0f3fa73 100644 --- a/pkg/apis/pingcap/v1alpha1/tidbcluster_component.go +++ b/pkg/apis/pingcap/v1alpha1/tidbcluster_component.go @@ -118,8 +118,6 @@ func (a *componentAccessorImpl) PodManagementPolicy() apps.PodManagementPolicyTy // unified podManagementPolicy check to avoid check everywhere if policy == apps.OrderedReadyPodManagement { return apps.OrderedReadyPodManagement - } else if policy == apps.ParallelPodManagement { - return apps.ParallelPodManagement } return apps.ParallelPodManagement }