We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15883cc commit eb2b83eCopy full SHA for eb2b83e
src/lib/schedule.ts
@@ -24,9 +24,7 @@ export function* generate({
24
}: {
25
start?: dayjs.Dayjs;
26
}): Generator<dayjs.Dayjs, void, unknown> {
27
- let initialDay = calcFirstDate(start ?? dayjs());
28
-
29
- let cur = initialDay;
+ let cur = calcFirstDate(start ?? dayjs());
30
while (true) {
31
yield cur;
32
cur = cur.add(cur.day() >= 4 ? 3 : 2, "d");
0 commit comments