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

Clean up activity_handlers.cpp a bit #33356

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

anothersimulacrum
Copy link
Member

@anothersimulacrum anothersimulacrum commented Aug 19, 2019

Summary

SUMMARY: None

Purpose of change

Having an else followed immediately by an if/else block (and only that) is pointless.

Describe the solution

Combine the if/else block into the else for better readability.

There's no point having else immediately followed
by and if/else block. Simply merged that if/else
block into the else above.
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 19, 2019
@ZhilkinSerg ZhilkinSerg merged commit 2e424ef into CleverRaven:master Aug 20, 2019
@anothersimulacrum anothersimulacrum deleted the code-cleanup branch August 20, 2019 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants