Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Feb 14, 2024
1 parent f541019 commit abed0d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/fontbakery/checkrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def run(self, reporters):
reporter.start(self.order)

reporter_lock = threading.Lock()

def distribute_result(result):
with reporter_lock:
for reporter in reporters:
Expand All @@ -286,7 +287,9 @@ def distribute_result(result):
) as executor:
for identity in self.order:
future = executor.submit(self._run_check, identity)
future.add_done_callback(lambda future: distribute_result(future.result()))
future.add_done_callback(
lambda future: distribute_result(future.result())
)
else:
for identity in self.order:
result = self._run_check(identity)
Expand Down

0 comments on commit abed0d1

Please sign in to comment.