Reformat SurroundWithNullCheckFix

This commit is contained in:
Toshiaki Kameyama
2019-03-01 23:48:46 +09:00
committed by Mikhail Glukhikh
parent f467d892ca
commit 2314a38342
@@ -53,7 +53,7 @@ class SurroundWithNullCheckFix(
companion object : KotlinSingleIntentionActionFactory() { companion object : KotlinSingleIntentionActionFactory() {
private fun KtExpression.hasAcceptableParent() = with (parent) { private fun KtExpression.hasAcceptableParent() = with(parent) {
this is KtBlockExpression || this.parent is KtIfExpression || this is KtBlockExpression || this.parent is KtIfExpression ||
this is KtWhenEntry || this.parent is KtLoopExpression this is KtWhenEntry || this.parent is KtLoopExpression
} }