From cca7ec3118d77406e8262ff4a55a2b5956625602 Mon Sep 17 00:00:00 2001 From: Keyi Xie Date: Thu, 21 Mar 2019 18:23:27 +0800 Subject: [PATCH] planner: tidy code (#9845) --- planner/core/logical_plan_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner/core/logical_plan_builder.go b/planner/core/logical_plan_builder.go index a3f9732274085..8bcea079c74aa 100644 --- a/planner/core/logical_plan_builder.go +++ b/planner/core/logical_plan_builder.go @@ -2084,7 +2084,7 @@ func (b *PlanBuilder) buildDataSource(tn *ast.TableName) (LogicalPlan, error) { } tableInfo := tbl.Meta() - var authErr error = nil + var authErr error if b.ctx.GetSessionVars().User != nil { authErr = ErrTableaccessDenied.GenWithStackByArgs("SELECT", b.ctx.GetSessionVars().User.Hostname, b.ctx.GetSessionVars().User.Username, tableInfo.Name.L) }