aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);