Minor: remove always true is-check
This commit is contained in:
@@ -74,7 +74,6 @@ class BodyGenerator(
|
|||||||
statementGenerator.declareComponentVariablesInBlock(ktDestructuringDeclaration, irBlockBody, parameterValue)
|
statementGenerator.declareComponentVariablesInBlock(ktDestructuringDeclaration, irBlockBody, parameterValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ktBody is KtBlockExpression) {
|
|
||||||
val ktBodyStatements = ktBody.statements
|
val ktBodyStatements = ktBody.statements
|
||||||
if (ktBodyStatements.isNotEmpty()) {
|
if (ktBodyStatements.isNotEmpty()) {
|
||||||
for (ktStatement in ktBodyStatements.dropLast(1)) {
|
for (ktStatement in ktBodyStatements.dropLast(1)) {
|
||||||
@@ -89,7 +88,6 @@ class BodyGenerator(
|
|||||||
IrGetObjectValueImpl(ktBody.startOffset, ktBody.endOffset, context.builtIns.unitType,
|
IrGetObjectValueImpl(ktBody.startOffset, ktBody.endOffset, context.builtIns.unitType,
|
||||||
context.symbolTable.referenceClass(context.builtIns.unit))))
|
context.symbolTable.referenceClass(context.builtIns.unit))))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return irBlockBody
|
return irBlockBody
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user