Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyCzech committed Apr 11, 2024
1 parent 255d74f commit 143fe0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
node-version: [ 18, 20, 21 ]
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ ubuntu-latest, windows-latest, macos-latest ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion lib/easter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ export function getEasterDayName(date: DateTime | Date): string | undefined {
if (isHolyWeek(date)) {
date = date instanceof Date ? DateTime.fromJSDate(date) : date;
const index = date.diff(getEaster(date.year), 'days').as('days');
return names[index];
return index in names ? names[index] : undefined;
}
}

0 comments on commit 143fe0d

Please sign in to comment.