Revert "Minor: Use second pattern argument instead of explicit callee.text"

This reverts commit 55e36fa1
This commit is contained in:
Yan Zhulanow
2020-10-24 00:18:15 +09:00
parent 519f92599c
commit 19896f9616
@@ -259,7 +259,7 @@ data class IfThenToSelectData(
val call = replaced.callExpression
val callee = call?.calleeExpression
if (callee != null && call.isCallingInvokeFunction(context)) {
replaced = factory.createExpressionByPattern("$0?.$1?.invoke()", replaced.receiverExpression, callee)
replaced = factory.createExpressionByPattern("$0?.${callee.text}?.invoke()", replaced.receiverExpression)
}
}
replaced