Skip to content

Commit b797387

Browse files
committed
fixup! feat: day 21
1 parent 476a503 commit b797387

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/kotlin/cz/glubo/adventofcode/y2024/day21

src/main/kotlin/cz/glubo/adventofcode/y2024/day21/Day21.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Layer(
119119
position = targetPos
120120
}
121121
logger.debug { "$layerName hydrated $input: $outputs" }
122-
return@getOrPut outputs
122+
outputs
123123
}
124124

125125
private fun shortestPaths(
@@ -152,7 +152,7 @@ class Layer(
152152
}
153153
} while (paths.isNotEmpty())
154154

155-
return@getOrPut result
155+
result
156156
}
157157

158158
private fun getPosition(t: Tile) =

0 commit comments

Comments
 (0)