Browse Source

new chnages

Xcuello 5 years ago
parent
commit
3205b1e025
1 changed files with 1 additions and 8 deletions
  1. 1
    8
      src/main/java/rocks/zipcode/quiz5/collections/Bank.java

+ 1
- 8
src/main/java/rocks/zipcode/quiz5/collections/Bank.java View File

@@ -25,13 +25,6 @@ public class Bank {
25 25
 
26 26
     public Boolean containsBankAccount(BankAccount bankAccount) {
27 27
 
28
-        if (bank.contains(bankAccount)) {
29
-
30
-            return true;
31
-
32
-        } else {
33
-
34
-            return false;
35
-        }
28
+        return bank.contains(bankAccount);
36 29
     }
37 30
 }