diff --git a/play-framework/student-api/app/models/StudentStore.java b/play-framework/student-api/app/models/StudentStore.java index 01b565a22e..e665de399a 100644 --- a/play-framework/student-api/app/models/StudentStore.java +++ b/play-framework/student-api/app/models/StudentStore.java @@ -40,11 +40,6 @@ public class StudentStore { } public boolean deleteStudent(int id) { - Student student=students.remove(id); - if (student == null) - return false; - else - return true; - + return students.remove(id) != null; } } \ No newline at end of file