Skip to content

Commit e9febdf

Browse files
fix(template): correct indentation in DeepCopyWithTemplate function
Signed-off-by: Holger Waschke <holger.waschke@dvag.com>
1 parent e06c572 commit e9febdf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

template/template.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -657,13 +657,13 @@ func DeepCopyWithTemplate(value any, tmplTextFunc TemplateFunc) (any, error) {
657657
return parsed, ok
658658
}
659659
if inlineString, isString := inlineType.(string); isString {
660-
// Decode an explicit JSON string, such as output from toJson.
661-
// Preserve other strings because YAML can remove comments,
662-
// whitespace, and line breaks from plain scalar values.
663-
if json.Valid([]byte(parsed)) {
664-
return inlineString, ok
660+
// Decode an explicit JSON string, such as output from toJson.
661+
// Preserve other strings because YAML can remove comments,
662+
// whitespace, and line breaks from plain scalar values.
663+
if json.Valid([]byte(parsed)) {
664+
return inlineString, ok
665665
}
666-
return parsed, ok
666+
return parsed, ok
667667
}
668668
// inlineType holds structured data decoded from the rendered string.
669669
// This is already final data, so only normalize it into JSON-compatible

0 commit comments

Comments
 (0)