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:
Jelle Zijlstra 2021-05-29 09:03:08 -07:00 committed by GitHub
parent 33e2b44014
commit ab9baf0d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)