Fixed base64 decode an empty string #1209

This commit is contained in:
Mike Farah
2022-05-27 10:56:43 +10:00
parent 1e27e39927
commit 8d32e6a82c
2 changed files with 8 additions and 1 deletions
-1
View File
@@ -35,7 +35,6 @@ func (dec *base64Decoder) Decode(rootYamlNode *yaml.Node) error {
}
if buf.Len() == 0 {
dec.finished = true
return io.EOF
}
rootYamlNode.Kind = yaml.ScalarNode
rootYamlNode.Tag = "!!str"