mirror of
https://github.com/mikefarah/yq.git
synced 2025-02-04 21:44:17 +00: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…
Reference in New Issue
Block a user