From 2eb16ee8f384cb8440d6f0f8b6ee7874ddf8ee0c Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Fri, 13 Dec 2024 15:41:57 +0100 Subject: [PATCH] Update libs/report/committers/src/lib/parse-monthly.ts Co-authored-by: George Kalpakas --- libs/report/committers/src/lib/parse-monthly.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/report/committers/src/lib/parse-monthly.ts b/libs/report/committers/src/lib/parse-monthly.ts index 23e59af..3c81da9 100644 --- a/libs/report/committers/src/lib/parse-monthly.ts +++ b/libs/report/committers/src/lib/parse-monthly.ts @@ -8,11 +8,7 @@ export function parseMonthly(startDate: Date, endDate: Date, entries: Commit[]) end: endDate, }); - for (const idxr in range) { - const idx = parseInt(idxr); - if (idx + 1 >= range.length) { - continue; - } + for (let idx = 0; idx < range.length - 1; idx++) { const [start, end] = [range[idx], range[idx + 1]]; const month: MonthlyData = { month: format(start, 'LLLL yyyy'),