Minor: Use second pattern argument instead of explicit callee.text
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@ data class IfThenToSelectData(
|
|||||||
val call = replaced.callExpression
|
val call = replaced.callExpression
|
||||||
val callee = call?.calleeExpression
|
val callee = call?.calleeExpression
|
||||||
if (callee != null && call.isCallingInvokeFunction(context)) {
|
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
|
replaced
|
||||||
|
|||||||
Reference in New Issue
Block a user