mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
ruff: Fix SIM102 nested if statements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
50cf9bc4b8
commit
b0e569f07c
@@ -1595,9 +1595,8 @@ def export_files_from_s3(
|
||||
|
||||
count = 0
|
||||
for bkey in bucket.objects.filter(Prefix=object_prefix):
|
||||
if valid_hashes is not None:
|
||||
if bkey.Object().key not in valid_hashes:
|
||||
continue
|
||||
if valid_hashes is not None and bkey.Object().key not in valid_hashes:
|
||||
continue
|
||||
|
||||
key = bucket.Object(bkey.key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user