Skip to content

Commit

Permalink
Nicer or []
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph M. Wintersteiger committed Mar 28, 2022
1 parent 2243218 commit 514131e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/ccf/receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def check_endorsements(
node_cert: Certificate, service_cert: Certificate, endorsements: List[Certificate]
):
cert_i = node_cert
if endorsements:
for endorsement in endorsements:
check_endorsement(cert_i, endorsement)
cert_i = endorsement
for endorsement in endorsements or []:
check_endorsement(cert_i, endorsement)
cert_i = endorsement
check_endorsement(cert_i, service_cert)

0 comments on commit 514131e

Please sign in to comment.