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:
parent
acef64b019
commit
d27797b44b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user