lint: "collapsible if statements" warnings

This commit is contained in:
Kurtis Rader
2016-10-22 11:21:13 -07:00
parent a8c9019a39
commit 42458ff7ab
22 changed files with 349 additions and 446 deletions

View File

@@ -865,9 +865,7 @@ void env_push(bool new_scope) {
node->next = top;
node->new_scope = new_scope;
if (new_scope) {
if (local_scope_exports(top)) mark_changed_exported();
}
if (new_scope && local_scope_exports(top)) mark_changed_exported();
top = node;
}
@@ -885,7 +883,7 @@ void env_pop() {
}
}
if (killme->new_scope) {
if (killme->new_scope) { //!OCLINT(collapsible if statements)
if (killme->exportv || local_scope_exports(killme->next)) mark_changed_exported();
}