Skip to content

Commit

Permalink
fix: Remove unnecessary trailing commas in github-api-wrapper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 91c619b commit f97bbb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/services/github-api-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const GithubApiWrapper = async () => {
repositoryUrl: issue.pull_request.html_url.split('/pull')[0],
htmlUrl: issue.pull_request.html_url,
author: issue.user.login,
branchName: issue.head?.ref || '',
}),);
branchName: issue.head?.ref || ''
}));

const sorted = sortByDate(pullRequests);
return shouldFilterByMaximumAge ? filterByMaximumAge(sorted) : sorted;
Expand All @@ -118,7 +118,7 @@ const GithubApiWrapper = async () => {
const sortByDate = (pullRequests: PullRequest[]): PullRequest[] =>
pullRequests.sort((pullRequest1: PullRequest, pullRequest2: PullRequest) => (
new Date(pullRequest2.createdAt).getTime() - new Date(pullRequest1.createdAt).getTime()
),);
));

const readOwnerAndNameFromUrl = (url: string): string =>
url.replace('https://api.github.com/repos/', '').split('/pulls/')[0];
Expand Down

0 comments on commit f97bbb3

Please sign in to comment.