Browse Source

add refactoring for Methode checkAccount

remotes/origin/feature/send-money
fdai6618 2 years ago
parent
commit
9ed2c294e1
  1. 13
      src/sendmoney.c

13
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);
}
Loading…
Cancel
Save