some code refactoring and cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user