aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 20c9dc3..84633fd 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -505,14 +505,14 @@ namespace brep
chrono::seconds (0) /* delay */,
dtm));
- if (!pr.first)
+ if (!pr)
{
fail << "check suite " << cs.check_suite.node_id
<< ": unable to create unloaded CI request";
}
if (dtm == duplicate_tenant_mode::replace &&
- pr.second == duplicate_tenant_result::created)
+ pr->second == duplicate_tenant_result::created)
{
error << "check suite " << cs.check_suite.node_id
<< ": re-requested but tenant_service with id " << sid
@@ -1908,8 +1908,7 @@ namespace brep
return create (error, warn, &trace,
*build_db_, move (ts),
chrono::seconds (30) /* interval */,
- chrono::seconds (0) /* delay */)
- .first.has_value (); // @@ TODO HACKED AROUND
+ chrono::seconds (0) /* delay */).has_value ();
}
string ci_github::