refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-10-08 19:14:39 -05:00
parent d6efc19ba8
commit 13a55bff61

View File

@ -212,13 +212,14 @@ public:
static_cast<const char *>(__FUNCTION__);
row.reset();
if (has_row()) {
if (not has_row()) {
return false;
}
row = db_row{context_};
set_res(sqlite3_step(context_->stmt.get()), function_name);
return true;
}
return false;
}
[[nodiscard]] auto has_row() const -> bool { return res_ == SQLITE_ROW; }
@ -232,4 +233,5 @@ public:
}
};
} // namespace repertory::db
#endif // INCLUDE_DATABASE_DB_COMMON_HPP_