Skip to content

Commit e55aea5

Browse files
committed
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>
1 parent d517c83 commit e55aea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/document/document_db.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace {
3333
// > 0 <=> lhs == rhs
3434
// TODO(icanadi) move this to JSONDocument?
3535
int DocumentCompare(const JSONDocument& lhs, const JSONDocument& rhs) {
36-
assert(rhs.IsObject() == false && rhs.IsObject() == false &&
36+
assert(lhs.IsObject() == false && rhs.IsObject() == false &&
3737
lhs.type() == rhs.type());
3838

3939
switch (lhs.type()) {

0 commit comments

Comments
 (0)