Skip to content

Commit

Permalink
planner: tidy code (#9845)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiekeyi98 authored and ngaut committed Mar 21, 2019
1 parent b4cc3e4 commit cca7ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/logical_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit cca7ec3

Please sign in to comment.