From 919bdde203a038b9edf9004a2fa26e6db6db884c Mon Sep 17 00:00:00 2001 From: mtrx Date: Sun, 8 Dec 2024 00:41:59 +0100 Subject: [PATCH] unnecessary if block --- main.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index adc4ad9..f548526 100644 --- a/main.ts +++ b/main.ts @@ -11,10 +11,8 @@ const solvables: Solvable[] = []; await import('./solutions/' + solution.name) } - if (import.meta.main) { - // only solve the latest day - solvables.toReversed()[0].part1().then(solvable => solvable.part2()) - } + // only solve the latest day + solvables.toReversed()[0].part1().then(solvable => solvable.part2()) })()