1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-24 12:47:05 +00:00

Fixed RET507 (superfluous-else-continue): Unnecessary elif after continue statement

This commit is contained in:
Teal Dulcet 2025-01-08 05:11:53 -08:00
parent acef64b019
commit d27797b44b

View File

@ -71,7 +71,7 @@ def scan_files(collector):
if not os.path.exists(fn): if not os.path.exists(fn):
continue continue
elif fn[-3:] == '.gz': if fn[-3:] == '.gz':
tmp_file = tempfile.NamedTemporaryFile() tmp_file = tempfile.NamedTemporaryFile()
with gzip.open(fn, 'rb') as f: with gzip.open(fn, 'rb') as f:
shutil.copyfileobj(f, tmp_file) shutil.copyfileobj(f, tmp_file)