From 659f382f892b283b878df1383f3b834cd3d071ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Wouts?= Date: Thu, 8 Feb 2024 22:14:59 +1100 Subject: [PATCH] chore(intellij): remove unnecessary if block --- .../com/previewjs/intellij/plugin/services/ProjectService.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/integrations/intellij/src/main/kotlin/com/previewjs/intellij/plugin/services/ProjectService.kt b/integrations/intellij/src/main/kotlin/com/previewjs/intellij/plugin/services/ProjectService.kt index 117e4d5c42d..dddc3d10b04 100644 --- a/integrations/intellij/src/main/kotlin/com/previewjs/intellij/plugin/services/ProjectService.kt +++ b/integrations/intellij/src/main/kotlin/com/previewjs/intellij/plugin/services/ProjectService.kt @@ -129,9 +129,6 @@ class ProjectService(private val project: Project) : Disposable { file: VirtualFile, ) { val textEditor = source.allEditors.find { it.file == file } as? TextEditor ?: return - if (textEditor.file != file) { - return - } recrawlFile(file, textEditor.editor.document.text) }