Skip to content

Commit

Permalink
Fix lint warning for unmodified loop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkedev committed Mar 11, 2021
1 parent 399e8ce commit b328ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dates/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { startOfDay } from "./lib";
function* dates(start: Date, end: Date): Iterator<Date> {
const date = startOfDay(start);

while (date < end) {
while (date.getTime() < end.getTime()) {
yield new Date(date);
date.setDate(date.getDate() + 1);
}
Expand Down

0 comments on commit b328ef2

Please sign in to comment.