From 17f72572b0109cfbb813d8abccfb9c26ae3c018b Mon Sep 17 00:00:00 2001 From: Jesse Simpson Date: Wed, 14 May 2025 15:36:23 -0400 Subject: [PATCH] fix: adjust use case for when val is boolean Signed-off-by: Jesse Simpson --- pkg/chart/v2/util/values.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/chart/v2/util/values.go b/pkg/chart/v2/util/values.go index 5dbc2a3a3..11347152f 100644 --- a/pkg/chart/v2/util/values.go +++ b/pkg/chart/v2/util/values.go @@ -189,12 +189,8 @@ func isNonEmptyTable(val interface{}) bool { } func isNonEmptyString(val interface{}) bool { - stringContent, ok := val.(string) - if !ok { - return false - } - - return stringContent != "" + valueString := fmt.Sprintf("%s", val) + return valueString != "" } // PathValue takes a path that traverses a YAML structure and returns the value at the end of that path.