mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-24 12:47:05 +00:00
Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer removeprefix
over conditionally replacing with slice.
This commit is contained in:
parent
d09ca4561a
commit
027918d494
@ -464,8 +464,7 @@ def list_target_files(config):
|
|||||||
target_path = target.path
|
target_path = target.path
|
||||||
if not target_path.endswith('/'):
|
if not target_path.endswith('/'):
|
||||||
target_path += "/"
|
target_path += "/"
|
||||||
if target_path.startswith('/'):
|
target_path = target_path.removeprefix('/')
|
||||||
target_path = target_path[1:]
|
|
||||||
|
|
||||||
rsync_command = [ 'rsync',
|
rsync_command = [ 'rsync',
|
||||||
'-e',
|
'-e',
|
||||||
|
Loading…
Reference in New Issue
Block a user