From bfe84ef34e6c4d970095182de4aba2a045ded2d3 Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Fri, 9 Sep 2016 16:44:30 +0200 Subject: [PATCH] simplified expression --- arangod/Aql/Functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/Aql/Functions.cpp b/arangod/Aql/Functions.cpp index da66c5d909..d3150af63c 100644 --- a/arangod/Aql/Functions.cpp +++ b/arangod/Aql/Functions.cpp @@ -546,7 +546,7 @@ static void UnsetOrKeep(arangodb::Transaction* trx, for (auto const& entry : VPackObjectIterator(value, false)) { TRI_ASSERT(entry.key.isString()); std::string key = entry.key.copyString(); - if (!((names.find(key) == names.end()) ^ unset)) { + if ((names.find(key) == names.end()) == unset) { // not found and unset or found and keep if (recursive && entry.value.isObject()) { result.add(entry.key); // Add the key