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

View File

@ -6,7 +6,6 @@ import (
"io" "io"
"strings" "strings"
// "strings"
"unicode" "unicode"
"golang.org/x/net/html/charset" "golang.org/x/net/html/charset"

View File

@ -49,12 +49,10 @@ func (e *xmlEncoder) Encode(writer io.Writer, node *yaml.Node) error {
return err return err
} }
case yaml.DocumentNode: case yaml.DocumentNode:
log.Debugf("ENCODING DOCUMENT NODE")
err := e.encodeComment(encoder, headAndLineComment(node)) err := e.encodeComment(encoder, headAndLineComment(node))
if err != nil { if err != nil {
return err return err
} }
log.Debugf("OK NOW THE ACTUAL")
err = e.encodeTopLevelMap(encoder, unwrapDoc(node)) err = e.encodeTopLevelMap(encoder, unwrapDoc(node))
if err != nil { if err != nil {
return err return err