gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: using block inside case of sw


From: gnunet
Subject: [taler-wallet-core] branch master updated: using block inside case of switch breaks when building with babel 7 see https://github.com/babel/babel/issues/8709
Date: Thu, 17 Jun 2021 18:16:25 +0200

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

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 954ed239 using block inside case of switch breaks when building with 
babel 7 see https://github.com/babel/babel/issues/8709
954ed239 is described below

commit 954ed23911cf7e5d4dae30d56a74358bf571342b
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Jun 17 13:14:56 2021 -0300

    using block inside case of switch breaks when building with babel 7
    see https://github.com/babel/babel/issues/8709
---
 packages/taler-wallet-core/src/operations/reserves.ts     |  6 ++----
 packages/taler-wallet-core/src/operations/transactions.ts | 12 ++++--------
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/reserves.ts 
b/packages/taler-wallet-core/src/operations/reserves.ts
index dde71f04..fca4d214 100644
--- a/packages/taler-wallet-core/src/operations/reserves.ts
+++ b/packages/taler-wallet-core/src/operations/reserves.ts
@@ -732,14 +732,12 @@ async function processReserveImpl(
     case ReserveRecordStatus.REGISTERING_BANK:
       await processReserveBankStatus(ws, reservePub);
       return await processReserveImpl(ws, reservePub, true);
-    case ReserveRecordStatus.QUERYING_STATUS: {
+    case ReserveRecordStatus.QUERYING_STATUS: 
       const res = await updateReserve(ws, reservePub);
       if (res.ready) {
         return await processReserveImpl(ws, reservePub, true);
-      } else {
-        break;
       }
-    }
+      break;
     case ReserveRecordStatus.DORMANT:
       // nothing to do
       break;
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts 
b/packages/taler-wallet-core/src/operations/transactions.ts
index 82cfec55..52b9819d 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -418,26 +418,22 @@ export async function retryTransaction(
       const depositGroupId = rest[0];
       processDepositGroup(ws, depositGroupId, true);
       break;
-    case TransactionType.Withdrawal: {
+    case TransactionType.Withdrawal:
       const withdrawalGroupId = rest[0];
       await processWithdrawGroup(ws, withdrawalGroupId, true);
       break;
-    }
-    case TransactionType.Payment: {
+    case TransactionType.Payment:
       const proposalId = rest[0];
       await processPurchasePay(ws, proposalId, true);
       break;
-    }
-    case TransactionType.Tip: {
+    case TransactionType.Tip: 
       const walletTipId = rest[0];
       await processTip(ws, walletTipId, true);
       break;
-    }
-    case TransactionType.Refresh: {
+    case TransactionType.Refresh:
       const refreshGroupId = rest[0];
       await processRefreshGroup(ws, refreshGroupId, true);
       break;
-    }
     default:
       break;
   }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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