Add else clause for node (#3014)
Co-authored-by: Samir M'Sallem <samir.msallem@valtech-mobility.com> Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
parent
64f1e51df4
commit
7c31c5bada
@ -105,6 +105,8 @@ public class HashMap {
|
||||
} else {
|
||||
n.setNext(n.getNext().getNext());
|
||||
}
|
||||
} else {
|
||||
delete(n.getNext(), key);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user