Skip to content

Commit

Permalink
Break out of loop early on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaMann committed Oct 15, 2020
1 parent 137a9f0 commit d8c7384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/check-immutability.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
for k in immutable_keys:
if case[k] != new[case['uuid']][k]:
fails.add(case['uuid'])
break

if len(fails) == 0:
exit(0)
Expand Down

0 comments on commit d8c7384

Please sign in to comment.