From d27797b44bc384dbba0c02d134a54498e9de7037 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:11:53 -0800 Subject: [PATCH] Fixed RET507 (superfluous-else-continue): Unnecessary `elif` after `continue` statement --- management/mail_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/mail_log.py b/management/mail_log.py index 7d1cede2..ad645d90 100755 --- a/management/mail_log.py +++ b/management/mail_log.py @@ -71,7 +71,7 @@ def scan_files(collector): if not os.path.exists(fn): continue - elif fn[-3:] == '.gz': + if fn[-3:] == '.gz': tmp_file = tempfile.NamedTemporaryFile() with gzip.open(fn, 'rb') as f: shutil.copyfileobj(f, tmp_file)