mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-06-25 21:50:55 +00:00
Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer str.removeprefix()
over conditionally replacing with slice.
This commit is contained in:
parent
ddee3c6bfd
commit
a83db1aebc
@ -463,8 +463,7 @@ def list_target_files(config):
|
||||
target_path = target.path
|
||||
if not target_path.endswith('/'):
|
||||
target_path += '/'
|
||||
if target_path.startswith('/'):
|
||||
target_path = target_path[1:]
|
||||
target_path = target_path.removeprefix('/')
|
||||
|
||||
rsync_command = [ 'rsync',
|
||||
'-e',
|
||||
|
Loading…
Reference in New Issue
Block a user