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

This commit is contained in:
Yan Zhulanow
2020-10-08 22:53:12 +09:00
parent 5095caee50
commit 55e36fa1ab
@@ -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?.${callee.text}?.invoke()", replaced.receiverExpression)
replaced = factory.createExpressionByPattern("$0?.$1?.invoke()", replaced.receiverExpression, callee)
}
}
replaced