Refactoring

This commit is contained in:
Mike Farah
2019-12-09 13:57:38 +11:00
parent 586ffb833b
commit 8c0046a622
+1 -1
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