Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoLiberali committed Jan 8, 2024
1 parent 3de4e94 commit b5c2f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cql-lint/pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ func findForIndex(callExpr *ast.CallExpr, positionsToReport []Position) ([]Posit
// other functions may be between callExpr and the cql method, example: cql.Query(...).Limit(1).Descending
selectorExpr, isSelector := callExpr.Fun.(*ast.SelectorExpr)
if isSelector {
callExpr, isCall := selectorExpr.X.(*ast.CallExpr)
internalCallExpr, isCall := selectorExpr.X.(*ast.CallExpr)
if isCall {
return findForIndex(callExpr, positionsToReport)
return findForIndex(internalCallExpr, positionsToReport)
}
}

Expand Down

0 comments on commit b5c2f0d

Please sign in to comment.