diff options
author | 2021-02-19 14:39:34 +0100 | |
---|---|---|
committer | 2021-02-23 03:33:09 +0100 | |
commit | 6badbd4cb85bd688363ed5d57e174b43b4788f66 (patch) | |
tree | e8cf2ec82415344c717c639e16df1810a8aeaa7b | |
parent | Simplify the _split_parameters implementation (diff) |
Simplify condition
-rw-r--r-- | bot/exts/info/doc/_parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |