Skip to content

Commit

Permalink
Update internal/server/receiver_handlers.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matheus Pimenta <[email protected]>
Signed-off-by: Kevin McDermott <[email protected]>
  • Loading branch information
bigkevmcd and matheuscscp authored Sep 17, 2024
1 parent 5da3f91 commit b6d22ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/receiver_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func evaluate(expr string, env *cel.Env, data map[string]any) ([]apiv1.CrossName
func parseList(l traits.Lister) ([]apiv1.CrossNamespaceObjectReference, error) {
var resources []apiv1.CrossNamespaceObjectReference
it := l.Iterator()
for it.HasNext().Value() == true {
for it.HasNext().Value() {

Check failure on line 644 in internal/server/receiver_handlers.go

View workflow job for this annotation

GitHub Actions / CodeQL

non-boolean condition in for statement

Check failure on line 644 in internal/server/receiver_handlers.go

View workflow job for this annotation

GitHub Actions / kind

non-boolean condition in for statement
switch element := it.Next().(type) {
case traits.Mapper:
cno, err := mapperToReference(element)
Expand Down

0 comments on commit b6d22ba

Please sign in to comment.