mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Remove unnecessary code (#4141)
This commit is contained in:
@@ -131,15 +131,7 @@ class Graph {
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
neighbours != null
|
||||
? !neighbours.equals(vertex.neighbours)
|
||||
: vertex.neighbours != null
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return neighbours != null ? neighbours.equals(vertex.neighbours) : vertex.neighbours == null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user