1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-23 12:37:05 +00:00

Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer removeprefix over conditionally replacing with slice.

This commit is contained in:
Teal Dulcet 2025-01-08 05:10:17 -08:00
parent d09ca4561a
commit 027918d494

View File

@ -464,8 +464,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',