Fixed counter issue

I am getting tired now, time for a break.
This commit is contained in:
Dave Shanley
2023-02-18 18:49:34 -05:00
parent a93cc8cb61
commit b72ccf3c06

View File

@@ -168,7 +168,7 @@ func visitIndexWithoutDamagingIt(res *Resolver, idx *index.SpecIndex) {
for _, ref := range mapped { for _, ref := range mapped {
seenReferences := make(map[string]bool) seenReferences := make(map[string]bool)
var journey []*index.Reference var journey []*index.Reference
res.indexesVisited++ res.journeysTaken++
res.VisitReference(ref.Reference, seenReferences, journey, false) res.VisitReference(ref.Reference, seenReferences, journey, false)
} }
schemas := idx.GetAllComponentSchemas() schemas := idx.GetAllComponentSchemas()
@@ -176,7 +176,7 @@ func visitIndexWithoutDamagingIt(res *Resolver, idx *index.SpecIndex) {
if mappedIndex[s] == nil { if mappedIndex[s] == nil {
seenReferences := make(map[string]bool) seenReferences := make(map[string]bool)
var journey []*index.Reference var journey []*index.Reference
res.indexesVisited++ res.journeysTaken++
res.VisitReference(schemaRef, seenReferences, journey, false) res.VisitReference(schemaRef, seenReferences, journey, false)
} }
} }