From 6badbd4cb85bd688363ed5d57e174b43b4788f66 Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Fri, 19 Feb 2021 14:39:34 +0100 Subject: Simplify condition --- bot/exts/info/doc/_parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/info/doc/_parsing.py b/bot/exts/info/doc/_parsing.py index 280a0c8f2..173051650 100644 --- a/bot/exts/info/doc/_parsing.py +++ b/bot/exts/info/doc/_parsing.py @@ -101,7 +101,7 @@ def _truncate_signatures(signatures: Collection[str]) -> Union[List[str], Collec inversely proportional to the amount of signatures. A maximum of `_MAX_SIGNATURE_AMOUNT` signatures is assumed to be passed. """ - if not sum(len(signature) for signature in signatures) > _MAX_SIGNATURES_LENGTH: + if sum(len(signature) for signature in signatures) <= _MAX_SIGNATURES_LENGTH: return signatures max_signature_length = _EMBED_CODE_BLOCK_LINE_LENGTH * (MAX_SIGNATURE_AMOUNT + 1 - len(signatures)) -- cgit v1.2.3