Skip to content

Commit f05ef9a

Browse files
committed
fix: lint error on copying in range loop
1 parent a67f42d commit f05ef9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cmd/connector/connectorcmdutil/types_util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ func FilterValidTypesArgs(f *factory.Factory, toComplete string) ([]string, cobr
8484
}
8585

8686
items := types.GetItems()
87-
for _, connector_type := range items {
88-
if strings.HasPrefix(connector_type.GetId(), toComplete) {
89-
validTypes = append(validTypes, connector_type.GetId())
87+
for i := 0; i < len(items); i++ {
88+
if strings.HasPrefix(items[i].GetId(), toComplete) {
89+
validTypes = append(validTypes, items[i].GetId())
9090
}
9191
}
9292

0 commit comments

Comments
 (0)