Cleanup: apply "Convert lambda to reference"
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.types.KotlinType
|
||||
fun getReceiverValueWithSmartCast(
|
||||
receiverArgument: ReceiverValue?,
|
||||
smartCastType: KotlinType?
|
||||
) = smartCastType?.let { SmartCastReceiverValue(it) } ?: receiverArgument
|
||||
) = smartCastType?.let(::SmartCastReceiverValue) ?: receiverArgument
|
||||
|
||||
private class SmartCastReceiverValue(private val type: KotlinType) : ReceiverValue {
|
||||
override fun getType() = type
|
||||
|
||||
Reference in New Issue
Block a user