Skip to content

Commit 22a12ec

Browse files
committed
refactor: . Rename parameter to removeScheduledDate
1 parent d60ef41 commit 22a12ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Task/Recurrence.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ export class Recurrence {
7272
* Returns the dates of the next occurrence or null if there is no next occurrence.
7373
*
7474
* @param today - Optional date representing the completion date. Defaults to today.
75-
* @param dropScheduledDate - Optional boolean to drop the scheduled date from the next occurrence so long as a start or due date exists.
75+
* @param removeScheduledDate - Optional boolean to remove the scheduled date from the next occurrence so long as a start or due date exists.
7676
*/
77-
public next(today = window.moment(), dropScheduledDate: boolean = false): Occurrence | null {
77+
public next(today = window.moment(), removeScheduledDate: boolean = false): Occurrence | null {
7878
const nextReferenceDate = this.nextReferenceDate(today);
7979

8080
if (nextReferenceDate === null) {
8181
return null;
8282
}
8383

84-
return this.occurrence.next(nextReferenceDate, dropScheduledDate);
84+
return this.occurrence.next(nextReferenceDate, removeScheduledDate);
8585
}
8686

8787
public identicalTo(other: Recurrence) {

0 commit comments

Comments
 (0)