From dfb440edc0f37283f8cfe8a25359cc91292fd30a Mon Sep 17 00:00:00 2001 From: Rustin170506 <29879298+Rustin170506@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:17:25 +0800 Subject: [PATCH] chore: make lint happy --- .../handle/autoanalyze/priorityqueue/queue2.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/statistics/handle/autoanalyze/priorityqueue/queue2.go b/pkg/statistics/handle/autoanalyze/priorityqueue/queue2.go index 1f27b6c796ef6..3fafd9bb4ce16 100644 --- a/pkg/statistics/handle/autoanalyze/priorityqueue/queue2.go +++ b/pkg/statistics/handle/autoanalyze/priorityqueue/queue2.go @@ -290,12 +290,11 @@ func (pq *AnalysisPriorityQueueV2) tryUpdateJob( stats, partitionStats, ) - } else { - indicators.ChangePercentage = jobFactory.CalculateChangePercentage(stats) - indicators.TableSize = jobFactory.CalculateTableSize(stats) - oldJob.SetIndicators(indicators) - return oldJob } + indicators.ChangePercentage = jobFactory.CalculateChangePercentage(stats) + indicators.TableSize = jobFactory.CalculateTableSize(stats) + oldJob.SetIndicators(indicators) + return oldJob } func (pq *AnalysisPriorityQueueV2) refreshTime() {