From dcc083c0959d395bcd4bcf9aee276eb96ea76dee Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 2 May 2020 17:11:55 +0200 Subject: POST /orders/ID/refund implementation --- .../taler-merchant-httpd_private-patch-instances-ID.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/backend/taler-merchant-httpd_private-patch-instances-ID.c') diff --git a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c index a4104b05..9255dcaa 100644 --- a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c @@ -96,18 +96,10 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, res = TALER_MHD_parse_json_data (connection, hc->request_body, spec); - /* json is malformed */ - if (GNUNET_NO == res) - { - GNUNET_break_op (0); - return MHD_YES; - } - /* other internal errors might have occurred */ - if (GNUNET_SYSERR == res) - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_INTERNAL_INVARIANT_FAILURE, - "Impossible to parse the order"); + if (GNUNET_OK != res) + return (GNUNET_NO == res) + ? MHD_YES + : MHD_NO; } if (! json_is_array (payto_uris)) return TALER_MHD_reply_with_error (connection, -- cgit v1.2.3