From 3d4baa996936b55b595d4f2f619ce47472a21d10 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 17 Nov 2022 16:58:38 +0100 Subject: -code cleanup --- src/testing/testing_api_cmd_purse_get.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/testing/testing_api_cmd_purse_get.c') diff --git a/src/testing/testing_api_cmd_purse_get.c b/src/testing/testing_api_cmd_purse_get.c index 61873721..3e7da38f 100644 --- a/src/testing/testing_api_cmd_purse_get.c +++ b/src/testing/testing_api_cmd_purse_get.c @@ -188,13 +188,7 @@ status_run (void *cls, create_purse = TALER_TESTING_interpreter_lookup_command (is, ss->purse_reference); - - if (NULL == create_purse) - { - GNUNET_break (0); - TALER_TESTING_interpreter_fail (is); - return; - } + GNUNET_assert (NULL != create_purse); if (GNUNET_OK != TALER_TESTING_get_trait_purse_pub (create_purse, &ss->purse_pub)) @@ -311,6 +305,7 @@ finish_run (void *cls, poll_purse = TALER_TESTING_interpreter_lookup_command (is, ps->poll_reference); + GNUNET_assert (NULL != poll_purse); GNUNET_assert (poll_purse->run == &status_run); ss = poll_purse->cls; if (NULL == ss->pgh) -- cgit v1.2.3