Skip to content

Commit 339e3c8

Browse files
committed
Get rid of two warnings
1 parent 74e54ad commit 339e3c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/kotlin/de/ronny_h/aoc/year2024/day16/ReindeerMazeGrid.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ private class ReindeerMazeGrid(input: List<String>) : Grid<Char>(input, '#') {
7575

7676
val h: (Node) -> Int = { n -> n.position taxiDistanceTo goal.position }
7777

78+
@Suppress("unused")
7879
val printIt: (Set<Node>, Node, () -> String) -> Unit = { visited, current, info ->
7980
printGrid(visited.map { it.position }.toSet(), 'o', current.position, current.direction)
8081
println(info.invoke())

src/main/kotlin/de/ronny_h/aoc/year2024/day18/RAMRun.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RAMRun : AdventOfCode<String>(2024, 18) {
3232
val memorySpace = MemorySpace(width, input.subList(0, n).toCoordinates())
3333
try {
3434
memorySpace.shortestPath(Coordinates(0, 0), Coordinates(width - 1, width - 1))
35-
} catch (e: IllegalStateException) {
35+
} catch (_: IllegalStateException) {
3636
return input[n - 1]
3737
}
3838
}

0 commit comments

Comments
 (0)