MCPcopy
hub / github.com/gitify-app/gitify / areAllAccountErrorsSame

Function areAllAccountErrorsSame

src/renderer/utils/core/errors.ts:69–78  ·  view source on GitHub ↗
(
  accountNotifications: AccountNotifications[],
)

Source from the content-addressed store, hash-verified

67 * Check if all account errors are the same
68 */
69export function areAllAccountErrorsSame(
70 accountNotifications: AccountNotifications[],
71) {
72 if (accountNotifications.length === 0) {
73 return true;
74 }
75
76 const firstError = accountNotifications[0].error;
77 return accountNotifications.every((account) => account.error === firstError);
78}

Callers 2

errors.test.tsFile · 0.90
useNotificationsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected