Cleanup: Formatting code

This commit is contained in:
Paul Beckingham 2015-08-05 16:50:20 -04:00
parent fda8161be8
commit f9b5513882

View file

@ -1075,7 +1075,7 @@ void CLI2::desugarFilterAttributes ()
if (a._lextype == Lexer::Type::pair && if (a._lextype == Lexer::Type::pair &&
a.hasTag ("FILTER")) a.hasTag ("FILTER"))
{ {
std::string raw = a.attribute ("raw"); std::string raw = a.attribute ("raw");
std::string name = a.attribute ("name"); std::string name = a.attribute ("name");
std::string mod = a.attribute ("modifier"); std::string mod = a.attribute ("modifier");
std::string sep = a.attribute ("separator"); std::string sep = a.attribute ("separator");
@ -1125,11 +1125,8 @@ void CLI2::desugarFilterAttributes ()
// duration --> yes // duration --> yes
bool evalSupported = true; bool evalSupported = true;
Column* col = context.columns[canonical]; Column* col = context.columns[canonical];
if (col && if (col && col->type () == "string")
col->type () == "string")
{
evalSupported = false; evalSupported = false;
}
A2 lhs (name, Lexer::Type::dom); A2 lhs (name, Lexer::Type::dom);
lhs.tag ("FILTER"); lhs.tag ("FILTER");