Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary conditional in ssz generic test gen code #2791

Merged
merged 1 commit into from
Jan 7, 2022
Merged

remove unnecessary conditional in ssz generic test gen code #2791

merged 1 commit into from
Jan 7, 2022

Conversation

ralexstokes
Copy link
Member

@@ -104,17 +104,16 @@ def invalid_cases():
RandomizationMode.mode_nil_count,
RandomizationMode.mode_one_count,
RandomizationMode.mode_max_count]:
if len(offsets) != 0:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(offsets) == 0 always as we already checked to enter into this flow.

and we do not mutate them while iterating over the hardcoded list of modes...

@ralexstokes ralexstokes changed the title remove unnecessary conditional remove unnecessary conditional in ssz generic test code Jan 6, 2022
@ralexstokes ralexstokes changed the title remove unnecessary conditional in ssz generic test code remove unnecessary conditional in ssz generic test gen code Jan 6, 2022
@hwwhww hwwhww merged commit fab4cb0 into ethereum:dev Jan 7, 2022
@ralexstokes ralexstokes deleted the clean-up-test-gen branch January 7, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants