Skip to content

Commit

Permalink
shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuenni committed Nov 17, 2024
1 parent 2c5aa25 commit 0dbd193
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions bin/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,16 +1517,13 @@ def parse_count(yaml, warn_for=None):
color_type=MessageType.ERROR,
)
return 1000
if count > 100:
if warn_for is not None:
message(
f'Found large count: {count}.',
'generators.yaml',
warn_for,
color_type=MessageType.LOG,
)
return count

if count > 100 and warn_for is not None:
message(
f'Found large count: {count}.',
'generators.yaml',
warn_for,
color_type=MessageType.LOG,
)
return count

# Count the number of testcases in the given directory yaml.
Expand Down

0 comments on commit 0dbd193

Please sign in to comment.