FirTypeResolverImpl: minor style fix

This commit is contained in:
Mikhail Glukhikh
2019-10-29 11:48:34 +03:00
parent 37cad476e8
commit 79e584519f
@@ -76,7 +76,9 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver {
}
override fun resolveUserType(typeRef: FirUserTypeRef, symbol: FirClassifierSymbol<*>?, scope: FirScope): ConeKotlinType {
symbol ?: return ConeKotlinErrorType("Symbol not found, for `${typeRef.render()}`")
if (symbol == null) {
return ConeKotlinErrorType("Symbol not found, for `${typeRef.render()}`")
}
return symbol.constructType(typeRef.qualifier, typeRef.isMarkedNullable)
}