1
0
Fork 0

simplified expression

This commit is contained in:
Frank Celler 2016-09-09 16:44:30 +02:00
parent 97ce16d88b
commit bfe84ef34e
1 changed files with 1 additions and 1 deletions

View File

@ -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