Flip condition to return early.

This commit is contained in:
voussoir 2020-12-07 18:02:41 -08:00
parent 4a50ac5aed
commit 0c529909c8

View file

@ -88,7 +88,9 @@ def brename(transformation, autoyes=False, do_naturalsort=False, recurse=False):
loop(pairs, dry=True)
if autoyes or interactive.getpermission('Is this correct?'):
if not (autoyes or interactive.getpermission('Is this correct?')):
return
# Sort in reverse so that renaming a file inside a directory always
# occurs before renaming the directory itself. If you rename the
# directory first, then the path to the file is invalid by the time