Fix ExtractionTestGenerated

This commit is contained in:
Dmitry Jemerov
2017-05-23 14:37:58 +02:00
parent f701f8f590
commit 57f4672b43
@@ -612,7 +612,7 @@ class KtPsiFactory @JvmOverloads constructor(private val project: Project, val m
private fun placeKeyword() {
assert(state == State.MODIFIERS)
if (!sb.endsWith(" ")) {
if (sb.isNotEmpty() && !sb.endsWith(" ")) {
sb.append(" ")
}
val keyword = when (target) {