summaryrefslogtreecommitdiff
path: root/patternutils/commands/tmv.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--patternutils/commands/tmv.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py
index a82b8f7..3b7f5e3 100644
--- a/patternutils/commands/tmv.py
+++ b/patternutils/commands/tmv.py
@@ -143,10 +143,7 @@ def tmv(
if has_existing and abort_on_path_exist:
raise SystemExit
- if force:
- files_to_move = new_filenames.items()
- else:
- files_to_move = non_existing.items()
+ files_to_move = new_filenames.items() if force else non_existing.items()
for old, new in files_to_move:
if verbose or interactive: