From 621f743a7b90bca3d26fca93b4befcb30861cd33 Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Mon, 13 Nov 2023 16:47:01 +0100 Subject: [PATCH] notify if config file was deleted 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); }); }