Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kurochan committed Dec 5, 2022
1 parent cd484f0 commit fabf67e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/yamlprocessor/yamlprocessor.go
Expand Up @@ -106,6 +106,12 @@ func (p *Processor) ReplaceString(path, value string) error {
func (p *Processor) Bytes() []byte {
str := p.file.String()

/*
TODO: Remove there when PR of go-yaml merged.
see also:
https://github.com/goccy/go-yaml/pull/329
https://github.com/pipe-cd/pipecd/pull/4033#discussion_r1039300377
*/
if len(str) > 0 && str[len(str)-1] != '\n' {
str += "\n"
}
Expand Down

0 comments on commit fabf67e

Please sign in to comment.