Skip to content

Commit

Permalink
fixup! Don't crash on non-existent path values
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Feb 17, 2023
1 parent c493044 commit b54e43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/customresourcestate/registry_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (c compiledGauge) value(it interface{}) (*eachValue, error) {
if it == nil {
return nil, fmt.Errorf("got nil while resolving path")
}
// Don't error if there was not a type-casting issue (`toFloat64`), but rather a failed lookup.
// Don't error if there was not a type-casting issue (`toFloat64`).
return nil, nil
}
value, err := toFloat64(got, c.NilIsZero)
Expand Down

0 comments on commit b54e43d

Please sign in to comment.