Kotlin: Remove some redundant return statments

This commit is contained in:
Ian Lynagh
2023-05-09 13:15:51 +01:00
parent 3d5c8153ca
commit 9764a8c348

View File

@@ -1365,7 +1365,7 @@ open class KotlinUsesExtractor(
val boundResults = useType(arg.type, TypeContext.GENERIC_ARGUMENT)
val boundLabel = boundResults.javaResult.id.cast<DbReftype>()
return if(arg.variance == Variance.INVARIANT)
if(arg.variance == Variance.INVARIANT)
boundResults.javaResult.cast<DbReftype>().forgetSignature()
else {
val keyPrefix = if (arg.variance == Variance.IN_VARIANCE) "super" else "extends"
@@ -1379,7 +1379,7 @@ open class KotlinUsesExtractor(
}
else -> {
logger.error("Unexpected type argument.")
return extractJavaErrorType().forgetSignature()
extractJavaErrorType().forgetSignature()
}
}
}