reduce complexity (flake8)

This commit is contained in:
Stefano Ariestasia 2022-02-06 03:04:23 +00:00
parent 0477070faa
commit 131b2d68d8

View File

@ -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([