Skip to content

Commit 9126c8e

Browse files
committed
removing blank assignment to keep linter happy
1 parent d7f8bc7 commit 9126c8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/analyzer/add_implicit_prefix_lengths.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func AddImplicitPrefixLengths(_ *sql.Context, _ *analyzer.Analyzer, node sql.Nod
6666
targetSchema := node.TargetSchema()
6767
colMap := schToColMap(targetSchema)
6868

69-
for i, _ := range index.Columns {
69+
for i := range index.Columns {
7070
col, ok := colMap[strings.ToLower(index.Columns[i].Name)]
7171
if !ok {
7272
return nil, false, fmt.Errorf("indexed column %s not found in schema", index.Columns[i].Name)
@@ -91,7 +91,7 @@ func AddImplicitPrefixLengths(_ *sql.Context, _ *analyzer.Analyzer, node sql.Nod
9191
newColumns[i] = copy
9292
}
9393
indexModified := false
94-
for i, _ := range newColumns {
94+
for i := range newColumns {
9595
col, ok := colMap[strings.ToLower(newColumns[i].Name)]
9696
if !ok {
9797
return nil, false, fmt.Errorf("indexed column %s not found in schema", newColumns[i].Name)

0 commit comments

Comments
 (0)