some code refactoring and cleanup

This commit is contained in:
2026-02-18 15:44:33 +01:00
parent e5072741f0
commit 36168b2e33
2 changed files with 3 additions and 87 deletions
@@ -82,8 +82,7 @@ public:
template<class EntityType>
utils::result<std::vector<insert_step>, query_build_error> build(const object::object_ptr<EntityType> &ptr) {
auto it = schema_.find(typeid(EntityType));
if (it == schema_.end()) {
if (const auto it = schema_.find(typeid(EntityType)); it == schema_.end()) {
return utils::failure(query_build_error::UnknownType);
}