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

Improve code-quality and doc for democracy pallet #389

Merged
merged 14 commits into from
May 28, 2024

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented May 28, 2024

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.

Comment on lines 482 to 487
if let Ok(passing) = positive_turnout_bias {
if passing {
return Ok(true)
}
return Ok(false);
}
Ok(false)
Copy link
Member Author

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 :)

Comment on lines +63 to +64
use pallet_encointer_ceremonies::Pallet as CeremoniesPallet;
use pallet_encointer_communities::Pallet as CommunitiesPallet;
Copy link
Member Author

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.

@clangenb clangenb requested a review from brenzi May 28, 2024 08:53
Copy link
Member

@brenzi brenzi left a comment

Choose a reason for hiding this comment

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

LGTM

@clangenb clangenb merged commit 67ffcfb into master May 28, 2024
6 checks passed
@clangenb clangenb deleted the cl/enhance-democracy-doc branch October 21, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants