Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWaterLW committed Sep 19, 2023
1 parent 0960584 commit 9195eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqle/driver/mysql/rule/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -6910,7 +6910,7 @@ func mustMatchLeftMostPrefix(input *RuleHandlerInput) error {
}

func isColumnMatchedALeftMostPrefix(allCols []string, colsWithEQ, colsWithOr []string, constraints []*ast.Constraint) bool {
var multiConstraints []*ast.Constraint
multiConstraints := make([]*ast.Constraint, 0)
for _, constraint := range constraints {
if len(constraint.Keys) == 1 {
continue
Expand Down Expand Up @@ -6942,7 +6942,7 @@ func isColumnMatchedALeftMostPrefix(allCols []string, colsWithEQ, colsWithOr []s
}

func isColumnUseLeftMostPrefix(allCols []string, constraints []*ast.Constraint) bool {
var multiConstraints []*ast.Constraint
multiConstraints := make([]*ast.Constraint, 0)
for _, constraint := range constraints {
if len(constraint.Keys) == 1 {
continue
Expand Down

0 comments on commit 9195eac

Please sign in to comment.