From 75965979e68831b46cfde18a0aee51a7d63119e3 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Fri, 10 May 2024 14:15:25 +0200 Subject: Post-review changes --- mod/mod-ci-github-gq.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mod/mod-ci-github-gq.cxx') diff --git a/mod/mod-ci-github-gq.cxx b/mod/mod-ci-github-gq.cxx index bea9a7f..954f5a8 100644 --- a/mod/mod-ci-github-gq.cxx +++ b/mod/mod-ci-github-gq.cxx @@ -80,9 +80,7 @@ namespace brep // serialize data to a stringstream and only parse it later once we're // sure there are no errors. // - ostringstream data; // The value of the data field. - - // @@@ Use iostringstream for both output and input. + stringstream data; // The value of the data field. p.next_expect (event::begin_object); @@ -144,8 +142,7 @@ namespace brep // Parse the data field now that we know there are no errors. // - string d (data.str ()); - json::parser dp (d, p.input_name); + json::parser dp (data, p.input_name); parse_data (dp); } @@ -183,8 +180,6 @@ namespace brep // } // } // - // @@@ TODO Handle response errors properly. - // static vector gq_parse_response_check_runs (json::parser& p) { -- cgit v1.1