From 1be9e8cae83c15db18d8e075c716687b0389422d Mon Sep 17 00:00:00 2001 From: fdai6618 <74294567+fdai6618@users.noreply.github.com> Date: Sat, 4 Feb 2023 11:48:37 +0100 Subject: [PATCH] add refactoring for methode getAvailableBalnce --- src/sendmoney.c | 2 +- src/sendmoney.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sendmoney.c b/src/sendmoney.c index 2f27bd4..7056895 100644 --- a/src/sendmoney.c +++ b/src/sendmoney.c @@ -3,7 +3,7 @@ // hier wird der Kontozustand zurückgegeben double getAvailableAccountBalance(double balance) { - double balance = 1000; + return balance; } diff --git a/src/sendmoney.h b/src/sendmoney.h index c54012f..4441313 100644 --- a/src/sendmoney.h +++ b/src/sendmoney.h @@ -9,4 +9,5 @@ bool checkAccount(int accountNumber); double getAvailableAccountBalance(double balance); float getAmount(float amountToSend); void getReceiverAccountNumber(); + #endif // SENDMONEY_H