Skip to content

Commit d60ef41

Browse files
committed
refactor: . Rename parameter to removeScheduledDate
1 parent 8ea9141 commit d60ef41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Task/Occurrence.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export class Occurrence {
8787
* If the occurrence has no reference date, an empty {@link Occurrence} will be returned.
8888
*
8989
* @param nextReferenceDate
90-
* @param dropScheduledDate - Optional boolean to drop the scheduled date from the next occurrence so long as a start or due date exists.
90+
* @param removeScheduledDate - Optional boolean to remove the scheduled date from the next occurrence so long as a start or due date exists.
9191
*/
92-
public next(nextReferenceDate: Date, dropScheduledDate: boolean = false): Occurrence {
92+
public next(nextReferenceDate: Date, removeScheduledDate: boolean = false): Occurrence {
9393
// Only if a reference date is given. A reference date will exist if at
9494
// least one of the other dates is set.
9595
if (this.referenceDate === null) {
@@ -103,7 +103,7 @@ export class Occurrence {
103103
const hasStartDate = this.startDate !== null;
104104
const hasDueDate = this.dueDate !== null;
105105
const canDropScheduledDate = hasStartDate || hasDueDate;
106-
const shouldDropScheduledDate = dropScheduledDate && canDropScheduledDate;
106+
const shouldDropScheduledDate = removeScheduledDate && canDropScheduledDate;
107107

108108
const startDate = this.nextOccurrenceDate(this.startDate, nextReferenceDate);
109109
const scheduledDate = shouldDropScheduledDate

0 commit comments

Comments
 (0)