[kotlin] Small adjustment

IJ-CR-141232
^KTIJ-29523

GitOrigin-RevId: aac763e23d759711f51962151bcf7f0cc8591018
This commit is contained in:
Andrey Cherkasov
2024-07-30 22:11:04 +00:00
committed by intellij-monorepo-bot
parent a81b7cba35
commit acb9b6df3b
@@ -20,7 +20,7 @@ class RemoveFunctionBodyFix(
elementContext: Unit,
updater: ModPsiUpdater,
) {
val bodyExpression = element.bodyExpression!!
val bodyExpression = element.bodyExpression ?: return
val equalsToken = element.equalsToken
if (equalsToken != null) {
val commentSaver = CommentSaver(PsiChildRange(equalsToken.nextSibling, bodyExpression.prevSibling), true)