Skip to content

Commit 2ab57e2

Browse files
authored
refactor: sonar issue notifications promise all (#2282)
Signed-off-by: Adam Setch <[email protected]>
1 parent 633d9f3 commit 2ab57e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/renderer/utils/notifications/notifications.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ function getNotifications(state: GitifyState) {
4242
export async function getAllNotifications(
4343
state: GitifyState,
4444
): Promise<AccountNotifications[]> {
45-
const responses = await Promise.all(getNotifications(state));
46-
4745
const notifications: AccountNotifications[] = await Promise.all(
48-
responses
46+
getNotifications(state)
4947
.filter((response) => !!response)
5048
.map(async (accountNotifications) => {
5149
try {

0 commit comments

Comments
 (0)