Minor: style fix in KotlinInlineFunctionHandler
This commit is contained in:
+2
-6
@@ -85,12 +85,8 @@ class KotlinInlineFunctionHandler: InlineActionHandler() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastReturn != null) {
|
replacementBuilder.prepareCodeToInline(lastReturn?.returnedExpression,
|
||||||
replacementBuilder.prepareCodeToInline(lastReturn.returnedExpression, statements.dropLast(1), ::analyzeBodyCopy)
|
statements.dropLast(returnStatements.size), ::analyzeBodyCopy)
|
||||||
}
|
|
||||||
else {
|
|
||||||
replacementBuilder.prepareCodeToInline(null, statements, ::analyzeBodyCopy)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
replacementBuilder.prepareCodeToInline(bodyCopy, emptyList(), ::analyzeBodyCopy)
|
replacementBuilder.prepareCodeToInline(bodyCopy, emptyList(), ::analyzeBodyCopy)
|
||||||
|
|||||||
Reference in New Issue
Block a user