Skip to content

Refactor election vote#4119

Merged
clemahieu merged 9 commits intonanocurrency:developfrom
JerzyStanislawski:refactor_election_vote
Feb 17, 2023
Merged

Refactor election vote#4119
clemahieu merged 9 commits intonanocurrency:developfrom
JerzyStanislawski:refactor_election_vote

Conversation

@JerzyStanislawski
Copy link
Copy Markdown
Contributor

Refactoring nano::election::vote method according to #4108.
Main goals:

Reduce nesting of if statements
Use early returns
Simplify longer if statement.

@dsiganos
Copy link
Copy Markdown
Contributor

Also, that if statement looks like an important one. And it looks like we are missing a test case for it.
Let's add a test case that checks that if statement.

@dsiganos dsiganos requested a review from clemahieu February 15, 2023 11:25
@clemahieu clemahieu merged commit b3f0c53 into nanocurrency:develop Feb 17, 2023
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.

4 participants