exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 0ce23ddc574e418290bdec962703d804193a7116
parent 1ad4d4854662a5fcb180351828d67eabb308421c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 30 Apr 2025 20:47:59 +0200

simplify logic

Diffstat:
Msrc/exchangedb/pg_get_denomination_by_serial.c | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/exchangedb/pg_get_denomination_by_serial.c b/src/exchangedb/pg_get_denomination_by_serial.c @@ -33,7 +33,6 @@ TEH_PG_get_denomination_by_serial ( struct TALER_EXCHANGEDB_DenominationKeyInformation *issue) { struct PostgresClosure *pg = cls; - enum GNUNET_DB_QueryStatus qs; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&denom_serial), GNUNET_PQ_query_param_end @@ -83,11 +82,9 @@ TEH_PG_get_denomination_by_serial ( ",age_mask" " FROM denominations" " WHERE denominations_serial=$1;"); - qs = GNUNET_PQ_eval_prepared_singleton_select (pg->conn, - "denomination_get_by_serial", - params, - rs); - if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) - return qs; - return qs; + return GNUNET_PQ_eval_prepared_singleton_select ( + pg->conn, + "denomination_get_by_serial", + params, + rs); }