diff --git a/server/schedule/opt/healthy.go b/server/schedule/opt/healthy.go index 7eb6768bcb57..af1b140efc41 100644 --- a/server/schedule/opt/healthy.go +++ b/server/schedule/opt/healthy.go @@ -38,8 +38,7 @@ func IsHealthyAllowPending(cluster Cluster, region *core.RegionInfo) bool { // IsEmptyRegionAllowBalance checks if a region is an empty region and can be balanced. func IsEmptyRegionAllowBalance(cluster Cluster, region *core.RegionInfo) bool { - return region.GetApproximateSize() > core.EmptyRegionApproximateSize || - (region.GetApproximateSize() <= core.EmptyRegionApproximateSize && cluster.GetRegionCount() < balanceEmptyRegionThreshold) + return region.GetApproximateSize() > core.EmptyRegionApproximateSize || cluster.GetRegionCount() < balanceEmptyRegionThreshold } // HealthRegion returns a function that checks if a region is healthy for