fix: adjust use case for when val is boolean

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
pull/12812/head
Jesse Simpson 4 months ago
parent 5c225a1bb4
commit 17f72572b0
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

@ -189,12 +189,8 @@ func isNonEmptyTable(val interface{}) bool {
} }
func isNonEmptyString(val interface{}) bool { func isNonEmptyString(val interface{}) bool {
stringContent, ok := val.(string) valueString := fmt.Sprintf("%s", val)
if !ok { return valueString != ""
return false
}
return stringContent != ""
} }
// PathValue takes a path that traverses a YAML structure and returns the value at the end of that path. // PathValue takes a path that traverses a YAML structure and returns the value at the end of that path.

Loading…
Cancel
Save