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:
Samir M'Sallem 2022-04-22 18:50:04 +02:00 committed by GitHub
parent 64f1e51df4
commit 7c31c5bada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,8 @@ public class HashMap {
} else { } else {
n.setNext(n.getNext().getNext()); n.setNext(n.getNext().getNext());
} }
} else {
delete(n.getNext(), key);
} }
} }