diff options
| author | Hornwitser <[email protected]> | 2018-08-09 14:17:03 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:58 -0500 |
| commit | a0634b3eea2de6910d9112608fc12c31e7117554 (patch) | |
| tree | 05f3cfe1f0eb367b20f478e85f105867cb18368c | |
| parent | [lint] Remove redundant paranthesis (diff) | |
| download | discord.py-a0634b3eea2de6910d9112608fc12c31e7117554.tar.xz discord.py-a0634b3eea2de6910d9112608fc12c31e7117554.zip | |
[lint] Simplyfy util.valid_icon_size
Remove redundant paranthesis and checks from util.valid_icon_size.
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index bb1e4d53..8c4c5734 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -291,7 +291,7 @@ async def sane_wait_for(futures, *, timeout, loop): def valid_icon_size(size): """Icons must be power of 2 within [16, 2048].""" - return ((size != 0) and not (size & (size - 1))) and size in range(16, 2049) + return not size & (size - 1) and size in range(16, 2049) class SnowflakeList(array.array): """Internal data storage class to efficiently store a list of snowflakes. |