diff --git a/src/sendmoney.c b/src/sendmoney.c index ba76cae..b9db957 100644 --- a/src/sendmoney.c +++ b/src/sendmoney.c @@ -3,15 +3,6 @@ // hier wird geprüft ob das Kontonummer gultig ist bool checkAccount(int accountNumber) { - - if (accountNumber >= 1000000 && accountNumber <= 9999999) - { - - return true; - } - else - { - - return false; - } + // Refactoring + return (accountNumber >= 1000000 && accountNumber <= 9999999); }