Skip to content

Commit 351b52d

Browse files
committed
refactor: . Rename variable to canRemoveScheduledDate
1 parent 22a12ec commit 351b52d

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
@@ -102,8 +102,8 @@ export class Occurrence {
102102

103103
const hasStartDate = this.startDate !== null;
104104
const hasDueDate = this.dueDate !== null;
105-
const canDropScheduledDate = hasStartDate || hasDueDate;
106-
const shouldDropScheduledDate = removeScheduledDate && canDropScheduledDate;
105+
const canRemoveScheduledDate = hasStartDate || hasDueDate;
106+
const shouldDropScheduledDate = removeScheduledDate && canRemoveScheduledDate;
107107

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

0 commit comments

Comments
 (0)