Skip to content

Commit

Permalink
Avoid new Date() for default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Apr 27, 2024
1 parent f41b2f1 commit 70ab3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function formatBulletin(

function filterFeature(
properties: MicroRegionProperties | MicroRegionElevationProperties,
today: string = new Date().toISOString().slice(0, "2006-01-02".length),
today: string,
): boolean {
return (
(!properties.start_date || properties.start_date <= today) &&
Expand Down

0 comments on commit 70ab3e9

Please sign in to comment.