Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Clean up control flow jumps followed by else statements. (filters)
If the last statement in an "if" block unconditional changes the control flow, then there is no need to follow that statement with an else block. Omitting the "else" statement and the indentation of the subsequent block makes the code easier to follow. https://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html
- Loading branch information
1 parent
97c5262
commit 2475fdb
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters