Skip to content

Commit

Permalink
Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyCzech committed Apr 12, 2024
1 parent 6c336fb commit 22ad077
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/easter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export function getEasterSunday(year: number): DateTime {
const e = b % 4; // eslint-disable-line unicorn/prevent-abbreviations
const f = Math.floor((b + 8) / 25);
const g = Math.floor((b - f + 1) / 3);
const h = (19 * a + b - d - g + 15) % 30;
const h = ((19 * a) + b - d - g + 15) % 30;
const i = Math.floor(c / 4);
const k = c % 4;
const l = (32 + 2 * e + 2 * i - h - k) % 7;
const m = Math.floor((a + 11 * h + 22 * l) / 451);
const month = Math.floor((h + l - 7 * m + 114) / 31);
const day = ((h + l - 7 * m + 114) % 31) + 1;
const l = (32 + (2 * e) + (2 * i) - h - k) % 7;
const m = Math.floor((a + (11 * h) + (22 * l)) / 451);
const month = Math.floor((h + l - (7 * m) + 114) / 31);
const day = ((h + l - (7 * m) + 114) % 31) + 1;

return DateTime.fromObject({year, month, day});
}
Expand Down
2 changes: 1 addition & 1 deletion test/easter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ test('Get Holy Week days names in 2025', t => {

// After Holy Week
t.falsy(getEasterDayName(DateTime.fromISO('2025-04-22')));
});
});

0 comments on commit 22ad077

Please sign in to comment.