Minor. Get rid of redundant elvis operand in AbstractConeSubstitutor::substituteOrNull

This commit is contained in:
Denis Zharkov
2019-09-09 18:27:51 +03:00
parent 6e51bed30c
commit 9d517d914b
@@ -62,7 +62,7 @@ abstract class AbstractConeSubstitutor : ConeSubstitutor() {
override fun substituteOrNull(type: ConeKotlinType): ConeKotlinType? {
val newType = substituteType(type)
return (newType ?: type.substituteRecursive()) ?: newType
return (newType ?: type.substituteRecursive())
}
private fun ConeKotlinType.substituteRecursive(): ConeKotlinType? {