Reformat SurroundWithNullCheckFix
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user