Skip to content

Commit

Permalink
fix: lint error on copying in range loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelahunt committed Feb 21, 2023
1 parent a67f42d commit f05ef9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/connector/connectorcmdutil/types_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func FilterValidTypesArgs(f *factory.Factory, toComplete string) ([]string, cobr
}

items := types.GetItems()
for _, connector_type := range items {
if strings.HasPrefix(connector_type.GetId(), toComplete) {
validTypes = append(validTypes, connector_type.GetId())
for i := 0; i < len(items); i++ {
if strings.HasPrefix(items[i].GetId(), toComplete) {
validTypes = append(validTypes, items[i].GetId())
}
}

Expand Down

0 comments on commit f05ef9a

Please sign in to comment.