-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve code-quality and doc for democracy pallet #389
Conversation
democracy/src/lib.rs
Outdated
if let Ok(passing) = positive_turnout_bias { | ||
if passing { | ||
return Ok(true) | ||
} | ||
return Ok(false); | ||
} | ||
Ok(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this code was a noop, so I removed it :)
use pallet_encointer_ceremonies::Pallet as CeremoniesPallet; | ||
use pallet_encointer_communities::Pallet as CommunitiesPallet; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevents that some statements are expanded to multiple lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I had completely forgotten how democracy works, so I tried to understand it by looking at the code. When I did that I found that I can improve some things along the way.