From 418fe6db3f26ef4a0505a2eb49cc7c11c4301ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB?= Date: Wed, 25 Oct 2023 15:20:57 +0400 Subject: [PATCH] Refactoring --- .../io/emeraldpay/dshackle/config/reload/ReloadConfigSetup.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/config/reload/ReloadConfigSetup.kt b/src/main/kotlin/io/emeraldpay/dshackle/config/reload/ReloadConfigSetup.kt index 5f3ad6b12..47ad7f164 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/config/reload/ReloadConfigSetup.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/config/reload/ReloadConfigSetup.kt @@ -43,9 +43,7 @@ class ReloadConfigSetup( try { log.info("Reloading config...") - val reloaded = reloadConfig() - - if (reloaded) { + if (reloadConfig()) { log.info("Config is reloaded") } else { log.info("There is nothing to reload, config is the same")