Skip to content

Commit

Permalink
fix: error reported by eslint (line-length)
Browse files Browse the repository at this point in the history
  • Loading branch information
BePo65 committed Jun 6, 2022
1 parent cebee93 commit 2c1059f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin/customParseFormat/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ function modMonth(n, x) {
return ((n % x) + x) % x
}

// code duplication as we cannot use 'isLeapYear' plugin here (it is only working with Dayjs objects)
// code duplication as we cannot use 'isLeapYear' plugin here;
// 'isLeapYear' is only working with Dayjs objects
function isLeapYear(year) {
return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0)
}
Expand Down

0 comments on commit 2c1059f

Please sign in to comment.