Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Jan 12, 2024
1 parent 960ecc7 commit b9966e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/rego/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ func checkSubtype(ii map[string]interface{}, provider string, subTypes []SubType
return true
}
}
case string: // k8s - basic logic, for now can be improved
if strings.ToLower(services) == strings.ToLower(st.Group) ||
strings.ToLower(services) == strings.ToLower(st.Version) ||
strings.ToLower(services) == strings.ToLower(st.Kind) {
case string: // k8s - logic can be improved
if strings.EqualFold(services, st.Group) ||
strings.EqualFold(services, st.Version) ||
strings.EqualFold(services, st.Kind) {
return true
}
}
Expand Down

0 comments on commit b9966e3

Please sign in to comment.