Simplify StudentStore

This commit is contained in:
Grzegorz Piwowarek 2016-10-04 17:24:46 +02:00
parent 8a3c918b94
commit 4a19a6ba88
1 changed files with 1 additions and 6 deletions

View File

@ -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;
}
}