Commit 3ee9ebb0 authored by Josh Holland's avatar Josh Holland Committed by Łukasz Langa
Browse files

Fix --check with multiple files (#88)

Passing multiple files to --check would previously result in the report
being printed as if the files had been written to.
parent 44a23517
Loading
Loading
Loading
Loading
+1 −1
Changes for black.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ async def schedule_formatting(
    }
    await asyncio.wait(tasks.values())
    cancelled = []
    report = Report()
    report = Report(check=not write_back)
    for src, task in tasks.items():
        if not task.done():
            report.failed(src, 'timed out, cancelling')