gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: Moving checks where


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: Moving checks where they belong.
Date: Mon, 03 Jun 2019 18:42:27 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 4f17b17f Moving checks where they belong.
4f17b17f is described below

commit 4f17b17fe35153daaa40a97a952d5da58fa3a18a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Jun 3 18:42:07 2019 +0200

    Moving checks where they belong.
---
 src/lib/testing_api_cmd_track.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/src/lib/testing_api_cmd_track.c b/src/lib/testing_api_cmd_track.c
index 4a054144..1c213083 100644
--- a/src/lib/testing_api_cmd_track.c
+++ b/src/lib/testing_api_cmd_track.c
@@ -523,21 +523,23 @@ track_transfer_cb
     TALER_TESTING_interpreter_fail (is);
     return;
   }
-  if (NULL == tts->expected_total_amount)
-  {
-    GNUNET_break (0);
-    TALER_TESTING_interpreter_fail (is);
-    return;
-  }
-  if (NULL == tts->expected_wire_fee)
-  {
-    GNUNET_break (0);
-    TALER_TESTING_interpreter_fail (is);
-    return;
-  }
+
   switch (http_status)
   {
   case MHD_HTTP_OK:
+    if (NULL == tts->expected_total_amount)
+    {
+      GNUNET_break (0);
+      TALER_TESTING_interpreter_fail (is);
+      return;
+    }
+    if (NULL == tts->expected_wire_fee)
+    {
+      GNUNET_break (0);
+      TALER_TESTING_interpreter_fail (is);
+      return;
+    }
+
     if (GNUNET_OK !=
         TALER_string_to_amount (tts->expected_total_amount,
                                 &expected_amount))

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]