Code cleanup: replace chained null-checks with safe-calls
This commit is contained in:
committed by
Mikhail Glukhikh
parent
732d1129ab
commit
7fb78a0372
@@ -98,7 +98,7 @@ class DefaultStatementConverter : JavaElementVisitor(), StatementConverter {
|
||||
|
||||
override fun visitDoWhileStatement(statement: PsiDoWhileStatement) {
|
||||
val condition = statement.condition
|
||||
val expression = if (condition != null && condition.type != null)
|
||||
val expression = if (condition?.type != null)
|
||||
codeConverter.convertExpression(condition, condition.type)
|
||||
else
|
||||
codeConverter.convertExpression(condition)
|
||||
|
||||
Reference in New Issue
Block a user