From a6a4f69ccb87b13842244ac0749bd9e38de56767 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sat, 15 Jan 2022 11:48:22 +1100 Subject: [PATCH] Minor fixes --- pkg/yqlib/decoder_xml.go | 1 - pkg/yqlib/encoder_xml.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/yqlib/decoder_xml.go b/pkg/yqlib/decoder_xml.go index f847a474..936a0af2 100644 --- a/pkg/yqlib/decoder_xml.go +++ b/pkg/yqlib/decoder_xml.go @@ -6,7 +6,6 @@ import ( "io" "strings" - // "strings" "unicode" "golang.org/x/net/html/charset" diff --git a/pkg/yqlib/encoder_xml.go b/pkg/yqlib/encoder_xml.go index b5933718..7914b8d4 100644 --- a/pkg/yqlib/encoder_xml.go +++ b/pkg/yqlib/encoder_xml.go @@ -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