Skip to content

Commit

Permalink
Outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jan 31, 2025
1 parent 9c54ad0 commit dada395
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DateCompare.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
class DateCompare {
static isTimestampWithinDuration(timestamp, duration, compareDate = Date.now()) {
// in the cache and no duration
// the default duration is Infinity (also "*")
if (!duration || duration === "*" || duration === Infinity) {
// no duration specified (plugin default is 1d, but if this is falsy assume infinite)
// "*" is infinite duration
return true;
}

Expand Down

0 comments on commit dada395

Please sign in to comment.