Skip to content

Commit

Permalink
fix: remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 10, 2019
1 parent 26abede commit 0fe3e8b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export class TimeToSolvePullRequestsPractice implements IPractice {
//Both GitHub API and Bitbucket API returns open pullrequests defaultly
const pullRequests = await ctx.collaborationInspector.getPullRequests(ownerAndRepoName.owner, ownerAndRepoName.repoName);

if (pullRequests.items.length === 0) {
return PracticeEvaluationResult.practicing;
}

const latestPRsUpdate = pullRequests.items.map((item) => new Date(item.updatedAt || item.createdAt).getTime());

const daysInMilliseconds = moment.duration(30, 'days').asMilliseconds();
Expand Down

0 comments on commit 0fe3e8b

Please sign in to comment.