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,7 +506,8 @@ def path_empty(
|
|||||||
"""
|
"""
|
||||||
Exit if there is no `src` provided for formatting
|
Exit if there is no `src` provided for formatting
|
||||||
"""
|
"""
|
||||||
if not src and (verbose or not quiet):
|
if not src:
|
||||||
|
if verbose or not quiet:
|
||||||
out(msg)
|
out(msg)
|
||||||
ctx.exit(0)
|
ctx.exit(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user