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

Global variable & code style improvements to raft.c #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

clumens
Copy link

@clumens clumens commented Mar 5, 2025

@jfriesse Here's yet another of these PRs. I'll get through them all eventually.

clumens and others added 3 commits March 5, 2025 16:35
Co-authored-by: Jan Pokorny <jpokorny@redhat.com>
When we have a condition with a bunch of code under it, these can often
be rewritten to invert the condition and exit which allows all the
previously indented code to be un-indented.  This can make the resulting
code easier to follow.

Additionally, we can unindent some else blocks if every path before them
included a return.
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.

1 participant