Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8b3bf5

Browse files
tamasvajkigfoo
authored andcommitted
Code quality improvements
1 parent 749d606 commit e8b3bf5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,10 +2640,8 @@ open class KotlinFileExtractor(
26402640

26412641
if ((isAndAnd || isOrOr) &&
26422642
e.branches.size == 2 &&
2643-
e.branches[1].condition is IrConst<*> &&
2644-
(e.branches[1].condition as IrConst<*>).value == true &&
2645-
e.branches[if (e.origin == IrStatementOrigin.ANDAND) 1 else 0].result is IrConst<*> &&
2646-
(e.branches[if (e.origin == IrStatementOrigin.ANDAND) 1 else 0].result as IrConst<*>).value == isOrOr) {
2643+
(e.branches[1].condition as? IrConst<*>)?.value == true &&
2644+
(e.branches[if (e.origin == IrStatementOrigin.ANDAND) 1 else 0].result as? IrConst<*>)?.value == isOrOr) {
26472645

26482646
// resugar binary logical operators:
26492647

0 commit comments

Comments
 (0)