PR comment

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
Mihail Vratchanski 2025-06-12 00:16:39 +03:00 committed by GitHub
parent 38579320c8
commit d33870563a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {