From d67a516238a4a004d60b6ea6b0b6862abeb9d27c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 2 Dec 2024 14:25:38 +0200 Subject: Minor tweaks for previous commit --- mod/database-module.cxx | 6 +++++- mod/mod-ci-github.cxx | 2 +- 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 (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 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 d = find (*build_db_, "ci-github", sid)) + if (optional d = find (*build_db_, "ci-github", sid)) { tenant_service& ts (d->service); -- cgit v1.1