Skip to content

Conversation

@GermanAizek
Copy link
Contributor

Reference to PR: #1595

@metux metux requested a review from a team December 10, 2025 18:14
@stefan11111
Copy link
Contributor

@GermanAizek Usually, else if is used as an entire token, with only one level of indentation.
This is because usually else if really is a more complex switch.
If you want to add braces around it, do:

else if (foo()) {
    ...
}

Not:

else {
    if (foo())
        ...
}

At least that's the way I see it.

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