Skip to content

Commit

Permalink
chore: pass existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney committed Oct 4, 2024
1 parent 4d22624 commit 61a22d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index/utility_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,11 @@ func (index *SpecIndex) scanOperationParams(params []*yaml.Node, keyNode, pathIt
}

func findIndex(index *SpecIndex, i *yaml.Node) *SpecIndex {
allIndexes := index.GetRolodex().GetIndexes()
rolodex := index.GetRolodex()
if rolodex == nil {
return index
}
allIndexes := rolodex.GetIndexes()
for _, searchIndex := range allIndexes {
nodeMap := searchIndex.GetNodeMap()
line, ok := nodeMap[i.Line]
Expand Down

0 comments on commit 61a22d2

Please sign in to comment.