From a804e7370ff55f816ed0dcee0592874f09bff0e4 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 16 Nov 2021 16:34:39 +1100 Subject: [PATCH] Minor improvement on handling front matter --- pkg/yqlib/front_matter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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