From 76d8e0427287785fe97a1b68b8631415fc82ec97 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 8 Oct 2025 11:46:02 -0700 Subject: [PATCH] refactor: sonar issue notifications promise all Signed-off-by: Adam Setch --- src/renderer/utils/notifications/notifications.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer/utils/notifications/notifications.ts b/src/renderer/utils/notifications/notifications.ts index 3ed5b0c31..1aef06d0b 100644 --- a/src/renderer/utils/notifications/notifications.ts +++ b/src/renderer/utils/notifications/notifications.ts @@ -42,10 +42,8 @@ function getNotifications(state: GitifyState) { export async function getAllNotifications( state: GitifyState, ): Promise { - const responses = await Promise.all(getNotifications(state)); - const notifications: AccountNotifications[] = await Promise.all( - responses + getNotifications(state) .filter((response) => !!response) .map(async (accountNotifications) => { try {