mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Refactoring
This commit is contained in:
parent
586ffb833b
commit
8c0046a622
@ -80,7 +80,7 @@ func (n *navigator) guessKind(tail []string, guess yaml.Kind) yaml.Kind {
|
|||||||
if tail[0] == "+" || errorParsingInt == nil {
|
if tail[0] == "+" || errorParsingInt == nil {
|
||||||
return yaml.SequenceNode
|
return yaml.SequenceNode
|
||||||
}
|
}
|
||||||
if tail[0] == "*" && guess == yaml.SequenceNode || guess == yaml.MappingNode {
|
if tail[0] == "*" && (guess == yaml.SequenceNode || guess == yaml.MappingNode) {
|
||||||
return guess
|
return guess
|
||||||
}
|
}
|
||||||
return yaml.MappingNode
|
return yaml.MappingNode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user