From 4abf6fa163c388296c0ed3a45eca267c377f1e73 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Tue, 11 Feb 2025 15:45:52 +0200 Subject: ci-github: Store App id as uint64_t --- mod/mod-ci-github-gh.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/mod-ci-github-gh.cxx') diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx index 2e886ac..42afe1b 100644 --- a/mod/mod-ci-github-gh.cxx +++ b/mod/mod-ci-github-gh.cxx @@ -211,9 +211,9 @@ namespace brep // one can be null. It's unclear under what circumstances, but it // shouldn't happen unless something is broken. // - string* v (p.next_expect_number_null ()); + optional v (p.next_expect_number_null ()); - if (v == nullptr) + if (!v) throw_json (p, "check_suite.app.id is null"); app_id = *v; @@ -310,7 +310,7 @@ namespace brep // while (p.next_expect (event::name, event::end_object)) { - if (c (ai, "id")) app_id = p.next_expect_number (); + if (c (ai, "id")) app_id = p.next_expect_number (); else p.next_expect_value_skip (); } -- cgit v1.1