Skip to content

Commit

Permalink
refactor to give more meaningful variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rdowavic authored and XiaowenHu96 committed Jul 31, 2020
1 parent 138664e commit fb3baff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ast/transform/MaterializeAggregationQueries.cpp
Expand Up @@ -201,10 +201,10 @@ bool MaterializeAggregationQueriesTransformer::needsMaterializedRelation(AstAggr
int countAtoms = 0;
const AstAtom* atom = nullptr;
for (const auto& literal : agg.getBodyLiterals()) {
const AstAtom* a = dynamic_cast<const AstAtom*>(literal);
if (a != nullptr) {
const AstAtom* currentAtom = dynamic_cast<const AstAtom*>(literal);
if (currentAtom != nullptr) {
++countAtoms;
atom = a;
atom = currentAtom;
}
}

Expand Down

0 comments on commit fb3baff

Please sign in to comment.