From 02ecc7fa32e5b6a8c1ff78365eb9844ce4268a20 Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Mon, 13 Nov 2023 16:47:01 +0100 Subject: [PATCH] fix: notify if config file was deleted (#201) Signed-off-by: Andre Dietisheim --- .../redhat/devtools/intellij/common/utils/ConfigWatcher.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/redhat/devtools/intellij/common/utils/ConfigWatcher.java b/src/main/java/com/redhat/devtools/intellij/common/utils/ConfigWatcher.java index 4130c5f..696f992 100644 --- a/src/main/java/com/redhat/devtools/intellij/common/utils/ConfigWatcher.java +++ b/src/main/java/com/redhat/devtools/intellij/common/utils/ConfigWatcher.java @@ -49,9 +49,7 @@ public ConfigWatcher(Path config, Listener listener) { @Override public void run() { runOnConfigChange((Config config) -> { - if (config != null) { - listener.onUpdate(this, config); - } + listener.onUpdate(this, config); }); }