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

This commit is contained in:
Teal Dulcet
2025-06-20 02:39:58 -07:00
parent 0635e89b6e
commit e73771be5f
+1 -1
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)