unnecessary if block
This commit is contained in:
parent
e51186bf8d
commit
919bdde203
1 changed files with 2 additions and 4 deletions
6
main.ts
6
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())
|
||||
})()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue