1
0
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:
Teal Dulcet 2025-06-18 04:20:19 -07:00
parent ddee3c6bfd
commit a83db1aebc

View File

@ -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',