Minor: Remove dead conditional in psi2ir

This commit is contained in:
Steven Schäfer
2019-09-16 15:30:57 +02:00
committed by Alexander Udalov
parent ce3ef4e4d0
commit 7ccf314808
@@ -245,9 +245,6 @@ open class InsertImplicitCasts(
KotlinBuiltIns.isInt(valueType) && notNullableExpectedType.isBuiltInIntegerType() ->
implicitCast(notNullableExpectedType, IrTypeOperator.IMPLICIT_INTEGER_COERCION)
KotlinTypeChecker.DEFAULT.isSubtypeOf(valueType, expectedType) ->
this
else -> {
val targetType = if (!valueType.containsNull()) notNullableExpectedType else expectedType
implicitCast(targetType, IrTypeOperator.IMPLICIT_CAST)