mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-24 12:47:05 +00:00
Fixed RET505 (superfluous-else-return): Unnecessary elif
after return
statement
This commit is contained in:
parent
08329c18cd
commit
554a161648
@ -528,7 +528,7 @@ def list_target_files(config):
|
|||||||
except ClientError as e:
|
except ClientError as e:
|
||||||
raise ValueError(e)
|
raise ValueError(e)
|
||||||
return backup_list
|
return backup_list
|
||||||
elif target.scheme == 'b2':
|
if target.scheme == 'b2':
|
||||||
from b2sdk.v1 import InMemoryAccountInfo, B2Api
|
from b2sdk.v1 import InMemoryAccountInfo, B2Api
|
||||||
from b2sdk.v1.exception import NonExistentBucket
|
from b2sdk.v1.exception import NonExistentBucket
|
||||||
info = InMemoryAccountInfo()
|
info = InMemoryAccountInfo()
|
||||||
@ -547,7 +547,6 @@ def list_target_files(config):
|
|||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
return [(key.file_name, key.size) for key, _ in bucket.ls()]
|
return [(key.file_name, key.size) for key, _ in bucket.ls()]
|
||||||
|
|
||||||
else:
|
|
||||||
raise ValueError(config["target"])
|
raise ValueError(config["target"])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user