document_db.cc: fix assert
Check for lhs and not twice for rhs. Fix for: [utilities/document/document_db.cc:36] -> [utilities/document/document_db.cc:36]: (style) Same expression on both sides of '&&'. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
d517c83648
commit
e55aea5512
@ -33,7 +33,7 @@ namespace {
|
||||
// > 0 <=> lhs == rhs
|
||||
// TODO(icanadi) move this to JSONDocument?
|
||||
int DocumentCompare(const JSONDocument& lhs, const JSONDocument& rhs) {
|
||||
assert(rhs.IsObject() == false && rhs.IsObject() == false &&
|
||||
assert(lhs.IsObject() == false && rhs.IsObject() == false &&
|
||||
lhs.type() == rhs.type());
|
||||
|
||||
switch (lhs.type()) {
|
||||
|
Loading…
Reference in New Issue
Block a user