Skip to content

Commit

Permalink
fix: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Nov 22, 2019
1 parent 5477308 commit 535e1c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/practices/LanguageIndependent/DoesPullRequests.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import moment from 'moment';
import { PracticeContext } from '../../contexts/practice/PracticeContext';
import { sharedSubpath } from '../../detectors/utils';
import { PracticeEvaluationResult, PracticeImpact } from '../../model';
import { ReporterUtils } from '../../reporters/ReporterUtils';
import { GitServiceUtils } from '../../services/git/GitServiceUtils';
import { DxPractice } from '../DxPracticeDecorator';
import { IPractice } from '../IPractice';
import moment from 'moment';

@DxPractice({
id: 'LanguageIndependent.DoesPullRequests',
Expand Down Expand Up @@ -36,9 +34,9 @@ export class DoesPullRequestsPractice implements IPractice {
return PracticeEvaluationResult.notPracticing;
}

const latestPRUpdate = pullRequests.items.map((item) => new Date(item.updatedAt || item.createdAt).getTime());
const descendingSortedPrDates = latestPRUpdate.sort((prA, prB) => prB - prA);
const latestPRsUpdate = pullRequests.items.map((item) => new Date(item.updatedAt || item.createdAt).getTime());

const descendingSortedPrDates = latestPRsUpdate.sort((prA, prB) => prB - prA);
const descendingSortedCommitDate = repoCommits.items.sort(
(commitA, commitB) => new Date(commitB.author.date).getTime() - new Date(commitA.author.date).getTime(),
);
Expand Down

0 comments on commit 535e1c7

Please sign in to comment.