aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-12-02 14:25:38 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2024-12-02 14:25:38 +0200
commitd67a516238a4a004d60b6ea6b0b6862abeb9d27c (patch)
treedd8a884d04261ee2f2b2349b4fc3b087e2da8b2d
parent56e8ebbb2f9ce02149f248aecebe20fcfd1d8e07 (diff)
Minor tweaks for previous commit
-rw-r--r--mod/database-module.cxx6
-rw-r--r--mod/mod-ci-github.cxx2
2 files changed, 6 insertions, 2 deletions
diff --git a/mod/database-module.cxx b/mod/database-module.cxx
index 4111156..629e393 100644
--- a/mod/database-module.cxx
+++ b/mod/database-module.cxx
@@ -104,8 +104,12 @@ namespace brep
build_db_->query_one<build_tenant> (query::service.id == id &&
query::service.type == type));
- if (t != nullptr && t->service)
+ if (t != nullptr)
{
+ // Shouldn't be here otherwise.
+ //
+ assert (t->service);
+
tenant_service& s (*t->service);
if (optional<string> data = f (t->id, s))
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 2540ecf..113da2e 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -599,7 +599,7 @@ namespace brep
{
kind = service_data::remote;
- if (optional<tenant_data> d = find (*build_db_, "ci-github", sid))
+ if (optional<tenant_data> d = find (*build_db_, "ci-github", sid))
{
tenant_service& ts (d->service);