Skip to content

Commit

Permalink
AQL zero length edge requirement fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 8, 2024
1 parent 418e1fc commit c169c9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/aql/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,11 @@ func (aqlq AQLquery) resolveEdgesFrom(
}
// We don't need matches, so try skipping this one
if es.MinIterations == 0 && currentDepth == 0 {
if len(aqlq.Sources) > currentSearchIndex+1 {
if len(aqlq.Next) > currentSearchIndex+1 {
aqlq.resolveEdgesFrom(opts, committedGraph, workingGraph, currentObject, currentSearchIndex+1, 0, currentTotalDepth+1, currentOverAllProbability)
} else {
// can't go deeper, it's the last one and it isn't required, so we're done :-)
committedGraph.Merge(*workingGraph)
return
}
}
// Then look for stuff that match in within the min and max iteration requirements
Expand Down

0 comments on commit c169c9c

Please sign in to comment.