Skip to content

Commit 08c4765

Browse files
rexagodmrueg
authored andcommitted
fixup! Don't crash on non-existent path values
1 parent 63d2138 commit 08c4765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/customresourcestate/registry_factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func (c compiledGauge) value(it interface{}) (*eachValue, error) {
434434
if it == nil {
435435
return nil, fmt.Errorf("got nil while resolving path")
436436
}
437-
// Don't error if there was not a type-casting issue (`toFloat64`), but rather a failed lookup.
437+
// Don't error if there was not a type-casting issue (`toFloat64`).
438438
return nil, nil
439439
}
440440
value, err := toFloat64(got, c.NilIsZero)

0 commit comments

Comments
 (0)