Skip to content

Commit

Permalink
fix missing block when there is no failure (#18775)
Browse files Browse the repository at this point in the history
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
ydshieh and ydshieh authored Aug 29, 2022
1 parent f2fbe44 commit 5f06a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/notification_service_doc_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def payload(self) -> str:
if self.n_failures > 0:
blocks.extend([self.category_failures])

if self.no_failures == 0:
if self.n_failures == 0:
blocks.append(self.no_failures)

return json.dumps(blocks)
Expand Down

0 comments on commit 5f06a09

Please sign in to comment.