From 1438be290a94cab319525a1ebaaf42e415e19e1f Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 21 Mar 2025 04:54:34 -0700 Subject: [PATCH] Fixed RET505 (superfluous-else-return): Unnecessary `else` after `return` statement --- management/mailconfig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/management/mailconfig.py b/management/mailconfig.py index 68501144..55671468 100644 --- a/management/mailconfig.py +++ b/management/mailconfig.py @@ -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