Reformat: AddNameToArgumentFix

This commit is contained in:
Mikhail Glukhikh
2018-08-07 11:29:11 +03:00
parent 06d339639f
commit 09766ae2ae
@@ -51,8 +51,7 @@ class AddNameToArgumentFix(argument: KtValueArgument) : KotlinQuickFixAction<KtV
assert(possibleNames.isNotEmpty()) { "isAvailable() should be checked before invoke()" } assert(possibleNames.isNotEmpty()) { "isAvailable() should be checked before invoke()" }
if (possibleNames.size == 1 || editor == null || !editor.component.isShowing) { if (possibleNames.size == 1 || editor == null || !editor.component.isShowing) {
addName(project, element, possibleNames.first()) addName(project, element, possibleNames.first())
} } else {
else {
chooseNameAndAdd(project, editor, possibleNames) chooseNameAndAdd(project, editor, possibleNames)
} }
} }