Skip to content

Commit

Permalink
chore: micro lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Dec 17, 2024
1 parent f286fdc commit 7357355
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/home/fetch-github/fetch-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,13 @@ function countBacklinks(aggregated: GitHubAggregated, allPullRequests: GitHubPul
// Fetch all notifications and return them as an array of aggregated data
export async function fetchAllNotifications(): Promise<GitHubAggregated[] | null> {
// fetches all notifications, pull requests and issues in parallel
const [notifications, pullRequests, issues] = await Promise.all([
fetchNotifications(),
fetchPullRequests(),
fetchIssues()
]);
const [notifications, pullRequests, issues] = await Promise.all([fetchNotifications(), fetchPullRequests(), fetchIssues()]);

if (!notifications || !pullRequests || !issues) return null;

const [pullRequestNotifications, issueNotifications] = await Promise.all([
getPullRequestNotifications(notifications, pullRequests, issues),
getIssueNotifications(notifications, issues)
getIssueNotifications(notifications, issues),
]);

if (!pullRequestNotifications && !issueNotifications) return null;
Expand Down

0 comments on commit 7357355

Please sign in to comment.