Skip to content

Commit eb2b83e

Browse files
committed
refactor: unneccessary relay variable
1 parent 15883cc commit eb2b83e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/schedule.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export function* generate({
2424
}: {
2525
start?: dayjs.Dayjs;
2626
}): Generator<dayjs.Dayjs, void, unknown> {
27-
let initialDay = calcFirstDate(start ?? dayjs());
28-
29-
let cur = initialDay;
27+
let cur = calcFirstDate(start ?? dayjs());
3028
while (true) {
3129
yield cur;
3230
cur = cur.add(cur.day() >= 4 ? 3 : 2, "d");

0 commit comments

Comments
 (0)