Fix path_empty() (#2275)
Behavior other than output shouldn't depend on the verbose/quiet option. As far as I can tell this currently has no visible effect, since code after this function is called handles an empty list gracefully.
This commit is contained in:
parent
33e2b44014
commit
ab9baf0d65
@ -506,8 +506,9 @@ def path_empty(
|
||||
"""
|
||||
Exit if there is no `src` provided for formatting
|
||||
"""
|
||||
if not src and (verbose or not quiet):
|
||||
out(msg)
|
||||
if not src:
|
||||
if verbose or not quiet:
|
||||
out(msg)
|
||||
ctx.exit(0)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user