mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-07 22:35:37 +00:00
PR comment
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
parent
38579320c8
commit
d33870563a
@ -125,10 +125,10 @@ func recursiveNodeEqual(lhs *CandidateNode, rhs *CandidateNode) bool {
|
||||
|
||||
// Simple alias resolution - if one is alias and other isn't, resolve the alias
|
||||
if lhs.Kind == AliasNode && rhs.Kind != AliasNode {
|
||||
if lhs.Alias != nil && lhs.Alias.Alias != nil {
|
||||
return recursiveNodeEqual(lhs.Alias.Alias, rhs)
|
||||
if lhs.Alias == nil || lhs.Alias.Alias == nil {
|
||||
return false
|
||||
}
|
||||
return false
|
||||
return recursiveNodeEqual(lhs.Alias.Alias, rhs)
|
||||
}
|
||||
if rhs.Kind == AliasNode && lhs.Kind != AliasNode {
|
||||
if rhs.Alias != nil && rhs.Alias.Alias != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user