Simplify StudentStore
This commit is contained in:
parent
8a3c918b94
commit
4a19a6ba88
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue