1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-06-25 21:50:55 +00:00

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

This commit is contained in:
Teal Dulcet 2025-06-18 04:27:07 -07:00
parent 0635e89b6e
commit e73771be5f

View File

@ -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)