Code cleanup: unnecessary local variable applied

This commit is contained in:
Mikhail Glukhikh
2017-07-20 16:10:35 +03:00
parent 202fb19cf6
commit 951e8cd91a
57 changed files with 118 additions and 203 deletions
@@ -77,7 +77,7 @@ class ConstructorConverter(
modifiers: Modifiers,
fieldsToDrop: MutableSet<PsiField>,
postProcessBody: (Block) -> Block): Constructor? {
val result = if (constructor == primaryConstructor) {
return if (constructor == primaryConstructor) {
convertPrimaryConstructor(annotations, modifiers, fieldsToDrop, postProcessBody)
}
else {
@@ -104,7 +104,6 @@ class ConstructorConverter(
SecondaryConstructor(annotations, modifiers, params, converter.deferredElement(::convertBody), thisOrSuperDeferred)
}
return result
}
private fun findThisOrSuperCall(constructor: PsiMethod): PsiExpressionStatement? {