1
0
mirror of https://github.com/taigrr/yq synced 2026-03-23 22:12:29 -07:00

Refactoring

This commit is contained in:
Mike Farah
2019-12-09 13:57:38 +11:00
parent 586ffb833b
commit 8c0046a622

View File

@@ -80,7 +80,7 @@ func (n *navigator) guessKind(tail []string, guess yaml.Kind) yaml.Kind {
if tail[0] == "+" || errorParsingInt == nil {
return yaml.SequenceNode
}
if tail[0] == "*" && guess == yaml.SequenceNode || guess == yaml.MappingNode {
if tail[0] == "*" && (guess == yaml.SequenceNode || guess == yaml.MappingNode) {
return guess
}
return yaml.MappingNode