Skip to content

Commit

Permalink
fix: support visiting interface{} in reference normalization
Browse files Browse the repository at this point in the history
We can treat this the same as Ptr
  • Loading branch information
justinsb committed Sep 9, 2024
1 parent 9b0baba commit 2db88e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/direct/monitoring/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (w *visitorWalker) visitAny(path string, v reflect.Value) {
}

switch v.Kind() {
case reflect.Ptr:
case reflect.Ptr, reflect.Interface:
if v.IsNil() {
return
}
Expand Down

0 comments on commit 2db88e0

Please sign in to comment.