From d6a1152bdbe9e9c112c533d1f3511ae292f843ce Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 13 Feb 2023 09:50:07 +0800 Subject: [PATCH] *: update golangci-linter Signed-off-by: Weizhen Wang --- planner/core/find_best_task.go | 1 - 1 file changed, 1 deletion(-) diff --git a/planner/core/find_best_task.go b/planner/core/find_best_task.go index 2e3b97956f6d0..9f1398acfcbf2 100644 --- a/planner/core/find_best_task.go +++ b/planner/core/find_best_task.go @@ -388,7 +388,6 @@ func (p *baseLogicalPlan) findBestTask(prop *property.PhysicalProperty, planCoun return invalidTask, 0, nil } - bestTask = invalidTask cntPlan = 0 // prop should be read only because its cached hashcode might be not consistent // when it is changed. So we clone a new one for the temporary changes.