Skip to content

Commit

Permalink
linter: enable revive for planner/core/flat_plan.go (#44134)
Browse files Browse the repository at this point in the history
close #44133
  • Loading branch information
tangjingyu97 authored May 24, 2023
1 parent f7ccac1 commit e034d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build/nogo_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,7 @@
"dumpling/export/sql_type.go": "please fix it",
".*_test\\.go$": "ignore generated code",
".*_generated\\.go$": "ignore generated code",
"planner/core/flat_plan.go": "planner/core/flat_plan.go",
"planner/core/resolve_indices.go": "planner/core/resolve_indices.go",
"planner/core/resolve_indices.go": "planner/core/resolve_indices.go",
"planner/core/rule_result_reorder.go": "planner/core/rule_result_reorder.go",
"planner/core/rule_join_reorder_dp.go": "planner/core/rule_join_reorder_dp.go",
"planner/core/plan_cache_param.go": "planner/core/plan_cache_param.go",
Expand Down
2 changes: 1 addition & 1 deletion planner/core/flat_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func FlattenPhysicalPlan(p Plan, buildSideFirst bool) *FlatPhysicalPlan {
return res
}

func (f *FlatPhysicalPlan) flattenSingle(p Plan, info *operatorCtx) *FlatOperator {
func (*FlatPhysicalPlan) flattenSingle(p Plan, info *operatorCtx) *FlatOperator {
// Some operators are not initialized and given an ExplainID. So their explain IDs are "_0"
// (when in EXPLAIN FORMAT = 'brief' it will be ""), we skip such operators.
// Examples: Explain, Execute
Expand Down

0 comments on commit e034d3a

Please sign in to comment.