mirror of https://gitee.com/bigwinds/arangodb
simplified expression
This commit is contained in:
parent
97ce16d88b
commit
bfe84ef34e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue