From 36929c0453aa88dd3257162f1462c36f4ddd785b Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 26 Jul 2023 14:46:14 +0300 Subject: [PATCH] Remove unnecessary `else` statement --- jmclient/jmclient/blockchaininterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jmclient/jmclient/blockchaininterface.py b/jmclient/jmclient/blockchaininterface.py index 20d8ca5d0..222b05378 100644 --- a/jmclient/jmclient/blockchaininterface.py +++ b/jmclient/jmclient/blockchaininterface.py @@ -489,9 +489,9 @@ def _estimate_fee_basic(self, conf_target: int) -> Optional[int]: # the 'feerate' key is found and contains a positive value: if estimate and estimate > 0: return btc.btc_to_sat(estimate) - else: # cannot get a valid estimate after `tries` tries: - log.warn("Could not source a fee estimate from Core") - return None + # cannot get a valid estimate after `tries` tries: + log.warn("Could not source a fee estimate from Core") + return None def get_current_block_height(self): try: