From 17ef395c171c689e93c5cb9cc84953424c8e1b20 Mon Sep 17 00:00:00 2001 From: Adela Homolova <53510747+adelkahomolova@users.noreply.github.com> Date: Thu, 19 Dec 2019 10:46:04 +0100 Subject: [PATCH] fix: bad letter case Co-Authored-By: Prokop Simek --- src/practices/LanguageIndependent/FatPullRequestsPractice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/practices/LanguageIndependent/FatPullRequestsPractice.ts b/src/practices/LanguageIndependent/FatPullRequestsPractice.ts index 47abd0440..914d36f02 100644 --- a/src/practices/LanguageIndependent/FatPullRequestsPractice.ts +++ b/src/practices/LanguageIndependent/FatPullRequestsPractice.ts @@ -33,7 +33,7 @@ export class FatPullRequestsPractice implements IPractice { }); const descendingSortedPullRequests = pullRequests.items.sort( - (A, B) => new Date(B.updatedAt || B.createdAt).getTime() - new Date(A.updatedAt || A.createdAt).getTime(), + (a, b) => new Date(b.updatedAt || b.createdAt).getTime() - new Date(a.updatedAt || a.createdAt).getTime(), ); const daysInMilliseconds = moment.duration(30, 'days').asMilliseconds(); const newestPrDate = new Date(descendingSortedPullRequests[0].updatedAt || descendingSortedPullRequests[0].createdAt).getTime();