This commit is contained in:
Sergey Zubkov
2021-04-05 15:11:05 -04:00
parent 7849d7e7c4
commit 077a29ee3c
2 changed files with 4 additions and 1 deletions

View File

@@ -4080,7 +4080,7 @@ Use a guard-clause to take care of exceptional cases and return early.
// Bad: Unnecessary nesting of conditions
void foo() {
...
if(x) {
if (x) {
if (y) {
computeImportantThings(x);
}