From c67f8c07d2936acf76ec92992f44d12d00aeaad8 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 26 May 2017 14:30:56 +0300 Subject: [PATCH] Minor cleanup --- .../idea/intentions/RemoveExplicitTypeArgumentsIntention.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveExplicitTypeArgumentsIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveExplicitTypeArgumentsIntention.kt index 96460e32c1a..0c344fe09a1 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveExplicitTypeArgumentsIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/RemoveExplicitTypeArgumentsIntention.kt @@ -89,7 +89,9 @@ class RemoveExplicitTypeArgumentsIntention : SelfTargetingOffsetIndependentInten } } - return args.size == newArgs.size && args.values.zip(newArgs.values).all { pair -> equalTypes(pair.first, pair.second) } + return args.size == newArgs.size && args.values.zip(newArgs.values).all { (argType, newArgType) -> + equalTypes(argType, newArgType) + } } }