Skip to content

Commit

Permalink
Fix --check with multiple files (#88)
Browse files Browse the repository at this point in the history
Passing multiple files to --check would previously result in the report
being printed as if the files had been written to.
  • Loading branch information
sersorrel authored and ambv committed Mar 29, 2018
1 parent 44a2351 commit 3ee9ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion black.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3ee9ebb

Please sign in to comment.