From 6dfc53b7368671f702ed5ed4e9801662da898a5f Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Mon, 14 Oct 2024 16:44:46 +0300 Subject: [PATCH] [Kotlin] Minor: remove an unnecessary step in a fast return KTIJ-30945 GitOrigin-RevId: be239610f9a6c0e59c23048873a6b94fd732112d --- .../copyPaste/KotlinCopyPasteStringTemplatePostProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kotlin/code-insight/kotlin.code-insight.k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/copyPaste/KotlinCopyPasteStringTemplatePostProcessor.kt b/plugins/kotlin/code-insight/kotlin.code-insight.k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/copyPaste/KotlinCopyPasteStringTemplatePostProcessor.kt index 57ff42d350e0..d5b9102a4136 100644 --- a/plugins/kotlin/code-insight/kotlin.code-insight.k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/copyPaste/KotlinCopyPasteStringTemplatePostProcessor.kt +++ b/plugins/kotlin/code-insight/kotlin.code-insight.k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/copyPaste/KotlinCopyPasteStringTemplatePostProcessor.kt @@ -141,7 +141,7 @@ internal class KotlinCopyPasteStringTemplatePostProcessor : CopyPastePostProcess } catch (e: Throwable) { if (e is ControlFlowException) throw e LOG.error(e) - ReplacementResult.KeepPreprocessed + return } val replacementText = when (replacementResult) {