diff --git a/pkg/yqlib/front_matter.go b/pkg/yqlib/front_matter.go index 059dce9e..9142ba86 100644 --- a/pkg/yqlib/front_matter.go +++ b/pkg/yqlib/front_matter.go @@ -79,7 +79,7 @@ func (f *frontMatterHandlerImpl) Split() error { return errReading } - _, errWriting := yamlTempFile.Write([]byte(line)) + _, errWriting := yamlTempFile.WriteString(line) if errWriting != nil { return errWriting