Minor fixes

This commit is contained in:
Mike Farah
2022-01-15 11:48:22 +11:00
parent be36a0ef4b
commit a6a4f69ccb
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -6,7 +6,6 @@ import (
"io"
"strings"
// "strings"
"unicode"
"golang.org/x/net/html/charset"
-2
View File
@@ -49,12 +49,10 @@ func (e *xmlEncoder) Encode(writer io.Writer, node *yaml.Node) error {
return err
}
case yaml.DocumentNode:
log.Debugf("ENCODING DOCUMENT NODE")
err := e.encodeComment(encoder, headAndLineComment(node))
if err != nil {
return err
}
log.Debugf("OK NOW THE ACTUAL")
err = e.encodeTopLevelMap(encoder, unwrapDoc(node))
if err != nil {
return err