We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for
1 parent 5720fd0 commit f1f9c36Copy full SHA for f1f9c36
src/analyzer/psi/utils.v
@@ -17,13 +17,7 @@ pub fn get_it_call(element PsiElement) ?&CallExpression {
17
}
18
19
methods_names := ['filter', 'map', 'any', 'all']
20
- if mut parent_call is CallExpression {
21
- for !is_array_method_call(*parent_call, ...methods_names) {
22
- return none
23
- }
24
25
-
26
+ if mut parent_call is CallExpression && is_array_method_call(parent_call, ...methods_names) {
27
return parent_call
28
29
0 commit comments