Unverified Commit ab9baf0d authored by Jelle Zijlstra's avatar Jelle Zijlstra Committed by GitHub
Browse files

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.
parent 33e2b440
Loading
Loading
Loading
Loading
+2 −1
Changes for src/black/__init__.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -506,7 +506,8 @@ def path_empty(
    """
    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)
        ctx.exit(0)