-simplify 200 vs. 204 in fakebank

This commit is contained in:
Christian Grothoff 2022-12-19 14:47:25 +01:00
parent c4cc1ea13d
commit 373673352f
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2310,16 +2310,6 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h,
pos = t;
}
}
if (0 == ha.delta)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No debit transactions exist after given starting point\n");
return TALER_MHD_reply_static (connection,
MHD_HTTP_NO_CONTENT,
NULL,
NULL,
0);
}
if (NULL != pos)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Returning %lld debit transactions starting (inclusive) from %llu\n",
@ -2536,16 +2526,6 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h,
pos = t;
}
}
if (0 == ha.delta)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No credit transactions exist after given starting point\n");
return TALER_MHD_reply_static (connection,
MHD_HTTP_NO_CONTENT,
NULL,
NULL,
0);
}
if (NULL != pos)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Returning %lld credit transactions starting (inclusive) from %llu\n",