Skip to content

Commit

Permalink
add missing logic back
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 6, 2024
1 parent eec653c commit a28c83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ast/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (doc *Document) Upsert(input *Assignment, options UpsertOptions) (*Assignme

existing := doc.Get(input.Name)

if options.SkipIfSet && existing != nil && existing.Literal != "__CHANGE_ME__" && input.Literal != "__CHANGE_ME__" {
if options.SkipIfSet && existing != nil && len(existing.Literal) > 0 && existing.Literal != "__CHANGE_ME__" && input.Literal != "__CHANGE_ME__" {
return nil, nil
}

Expand Down

0 comments on commit a28c83c

Please sign in to comment.