Code quality improvements

This commit is contained in:
Tamas Vajk
2022-02-02 11:00:18 +01:00
committed by Ian Lynagh
parent 695b3a6dbd
commit b7914ed77b

View File

@@ -2159,10 +2159,9 @@ open class KotlinFileExtractor(
callable: Label<out DbCallable>
) {
with("function reference", functionReferenceExpr) {
var target = functionReferenceExpr.reflectionTarget
if (target == null) {
val target = functionReferenceExpr.reflectionTarget ?: run {
logger.warnElement(Severity.ErrorSevere, "Expected to find reflection target for function reference. Using underlying symbol instead.", functionReferenceExpr)
target = functionReferenceExpr.symbol
functionReferenceExpr.symbol
}
/*