From 1fece521706c8759d3301da96d83848b2286aace Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 10 Aug 2016 17:27:33 +0300 Subject: [PATCH] Typo correction --- .../loopToCallChain/result/FindTransformationMatcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/FindTransformationMatcher.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/FindTransformationMatcher.kt index 7d2c4f152b4..46ab1677740 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/FindTransformationMatcher.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/FindTransformationMatcher.kt @@ -225,7 +225,7 @@ object FindTransformationMatcher : TransformationMatcher { val filter = filterTransformation?.effectiveCondition() if (indexVariable != null) { - if (filterTransformation == null) return null // makes no sense, indexVariable must be always 0 + if (filterTransformation == null) return null // makes no sense, indexVariable must be always null if (filterTransformation.indexVariable != null) return null // cannot use index in condition for indexOfFirst/indexOfLast //TODO: what if value when not found is not "-1"?