From f3d9a68bfee80c57854369724de57f339ac0b5e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 16:05:02 -0400 Subject: Remove redundant conditional clause --- src/client/ClientStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index 7cfd439d..66a8d3b6 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -79,7 +79,7 @@ ClientStore::add_object(const std::shared_ptr& object) assert(object->path().is_child_of(parent->path())); object->set_parent(parent); parent->add_child(object); - assert(parent && (object->parent() == parent)); + assert(object->parent() == parent); (*this)[object->path()] = object; _signal_new_object.emit(object); -- cgit v1.2.1