Skip to content

Commit

Permalink
Merge pull request #176 from ephemient/kt/day21
Browse files Browse the repository at this point in the history
Remove unused parameter
  • Loading branch information
ephemient authored Dec 27, 2024
2 parents a61a4d0 + 40a50c6 commit 16f9832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fun <T> Day(
solver = solver@{
val solver = try {
create(it)
} catch (e: AssertionError) {
} catch (_: AssertionError) {
return@solver List(size) { { "SKIPPED" } }
}
parts.map { suspend { it.invoke(solver) } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fun day21(outputDir: Path, className: ClassName = ClassName("com.github.ephemien
.build()
)
.addFunctions(
arrayOf(IndexedValue(2, "part1"), IndexedValue(25, "part2")).map { (depth, name) ->
arrayOf("part1", "part2").map { name ->
FunSpec.builder(name)
.returns(LONG)
.beginControlFlow("return %N.%M", "lines", MemberName("kotlin.collections", "sumOf"))
Expand Down

0 comments on commit 16f9832

Please sign in to comment.