diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-03 17:05:58 -0500 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-03 17:05:58 -0500 |
commit | bc169f677817a180b8535f14c908345c2d1a29bc (patch) | |
tree | 6341eff2da34471a1bec84a3ae79722e7d841c4e /ufund-api | |
parent | 2bbb2af383b8612f5fde9ce49ac9b61c59ba144a (diff) | |
download | JellySolutions-bc169f677817a180b8535f14c908345c2d1a29bc.tar.gz JellySolutions-bc169f677817a180b8535f14c908345c2d1a29bc.tar.bz2 JellySolutions-bc169f677817a180b8535f14c908345c2d1a29bc.zip |
Removed unnecessary check in createNeed method
Diffstat (limited to 'ufund-api')
-rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java index 4b2a04d..faaa98a 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java @@ -46,9 +46,6 @@ public class CupboardController { if (need.getMaxGoal() <= 0) { return new ResponseEntity<>(HttpStatus.BAD_REQUEST); } - if (need.getMaxGoal() < need.getCurrent()) { - return new ResponseEntity<>(HttpStatus.BAD_REQUEST); - } cupboardDAO.createNeed(need); return new ResponseEntity<>(need, HttpStatus.OK); } catch (IOException ex) { |