1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Fixed RET505 (superfluous-else-return): Unnecessary else after return statement

This commit is contained in:
Teal Dulcet 2025-03-21 04:54:34 -07:00
parent 7e0015ed84
commit 1438be290a

View File

@ -109,8 +109,7 @@ def sizeof_fmt(num):
if abs(num) < 1024.0:
if abs(num) > 99:
return f"{num:3.0f}{unit}"
else:
return f"{num:2.1f}{unit}"
return f"{num:2.1f}{unit}"
num /= 1024.0