Skip to content

Commit 22c7051

Browse files
committed
formatting
1 parent a55e4f6 commit 22c7051

File tree

1 file changed

+1
-2
lines changed
  • src/main/kotlin/me/peckb/aoc/_2024/calendar/day07

1 file changed

+1
-2
lines changed

src/main/kotlin/me/peckb/aoc/_2024/calendar/day07/Day07.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Day07 @Inject constructor(
1717
fun check(calibration: Calibration, operands: List<Operand>): Boolean {
1818
val (n, m) = calibration.numbers.take(2)
1919
val otherNumbers = calibration.numbers.drop(2)
20-
return operands.any { op ->
21-
check(calibration.value, listOf(op.invoke(n, m)).plus(otherNumbers), operands)
20+
return operands.any { op -> check(calibration.value, listOf(op.invoke(n, m)).plus(otherNumbers), operands)
2221
}
2322
}
2423

0 commit comments

Comments
 (0)