Skip to content

Commit

Permalink
Add unreachable assertion to operator(bool)
Browse files Browse the repository at this point in the history
  • Loading branch information
st235 committed Jun 29, 2024
1 parent 613a588 commit 3f4ff19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ class Json {
return _container.value._array->size() > 0;
case ValueContainer::kTypeObject:
return _container.value._object->size() > 0;
default:
JUNREACHABLE();
return false;
}
}

Expand Down

0 comments on commit 3f4ff19

Please sign in to comment.