Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Dec 10, 2024
1 parent 5f4583b commit ea4d95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function hike2(r: Rect<number>, p: Point, next: number): number {
function part1(inp: Parsed): number {
const r = new Rect(inp);
let tot = 0;
for (const p of r.filter(v => v === 0)) {
for (const p of r.filter((v) => v === 0)) {
const peaks = new PointSet();
hike(r, p, 1, peaks);
tot += peaks.size;
Expand All @@ -45,7 +45,7 @@ function part1(inp: Parsed): number {
function part2(inp: Parsed): number {
const r = new Rect(inp);
let tot = 0;
for (const p of r.filter(v => v === 0)) {
for (const p of r.filter((v) => v === 0)) {
tot += hike2(r, p, 1);
}
return tot;
Expand Down

0 comments on commit ea4d95e

Please sign in to comment.