Skip to content

Commit d433c83

Browse files
committed
refactor: . Rename variable to shouldRemoveScheduledDate
1 parent 351b52d commit d433c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Task/Occurrence.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ export class Occurrence {
103103
const hasStartDate = this.startDate !== null;
104104
const hasDueDate = this.dueDate !== null;
105105
const canRemoveScheduledDate = hasStartDate || hasDueDate;
106-
const shouldDropScheduledDate = removeScheduledDate && canRemoveScheduledDate;
106+
const shouldRemoveScheduledDate = removeScheduledDate && canRemoveScheduledDate;
107107

108108
const startDate = this.nextOccurrenceDate(this.startDate, nextReferenceDate);
109-
const scheduledDate = shouldDropScheduledDate
109+
const scheduledDate = shouldRemoveScheduledDate
110110
? null
111111
: this.nextOccurrenceDate(this.scheduledDate, nextReferenceDate);
112112
const dueDate = this.nextOccurrenceDate(this.dueDate, nextReferenceDate);

0 commit comments

Comments
 (0)