Skip to content

Commit 6093917

Browse files
committed
Clean up
1 parent d93cb04 commit 6093917

File tree

1 file changed

+2
-0
lines changed
  • src/test/kotlin/com/igorwojda/cache/advancedlru

1 file changed

+2
-0
lines changed

src/test/kotlin/com/igorwojda/cache/advancedlru/Solution.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ private object Solution1 {
5353
}
5454

5555
if (priorityQueue.isEmpty()) return
56+
5657
val item = priorityQueue.poll()
58+
5759
if (map.containsKey(item.key) && map[item.key] == item) {
5860
map.remove(item.key)
5961
}

0 commit comments

Comments
 (0)