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

Dieser Commit ist enthalten in:
Teal Dulcet
2025-06-18 05:00:46 -07:00
Ursprung ddee3c6bfd
Commit a83db1aebc
+1 -2
Datei anzeigen
@@ -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',