From 4a19a6ba88144cf52bd1ceaf040df1d2633ebc8a Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Tue, 4 Oct 2016 17:24:46 +0200 Subject: [PATCH] Simplify StudentStore --- play-framework/student-api/app/models/StudentStore.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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