Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and felipesanches committed Feb 15, 2024
1 parent 4c15319 commit d8acfd8
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 @@ -274,6 +274,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 @@ -285,7 +286,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 d8acfd8

Please sign in to comment.