Skip to content

Commit 4a19a6b

Browse files
author
Grzegorz Piwowarek
committed
Simplify StudentStore
1 parent 8a3c918 commit 4a19a6b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎play-framework/student-api/app/models/StudentStore.java‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ public Student updateStudent(Student student) {
4040
}
4141

4242
public boolean deleteStudent(int id) {
43-
Student student=students.remove(id);
44-
if (student == null)
45-
return false;
46-
else
47-
return true;
48-
43+
return students.remove(id) != null;
4944
}
5045
}

0 commit comments

Comments
 (0)