From 131b2d68d8f6b071dd3ab412627c6199cbc110a0 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sun, 6 Feb 2022 03:04:23 +0000 Subject: [PATCH] reduce complexity (flake8) --- freqtrade/rpc/telegram.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 06da7862e..5da98f21b 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -450,9 +450,7 @@ class Telegram(RPCHandler): ] if position_adjust: - max_buy_str = '' - if max_entries > 0: - max_buy_str = f"/{max_entries + 1}" + max_buy_str = (f"/{max_entries + 1}" if (max_entries > 0) else "") lines.append("*Number of Buy(s):* `{num_entries}`" + max_buy_str) lines.extend([