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 }