We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8a09f commit 5634750Copy full SHA for 5634750
1 file changed
src/renderer/utils/notifications/handlers/utils.ts
@@ -17,22 +17,18 @@ type AuthorInput =
17
export function getNotificationAuthor(
18
users: AuthorInput[],
19
): GitifyNotificationUser | undefined {
20
- let subjectUser: GitifyNotificationUser | undefined;
21
-
22
for (const user of users) {
23
if (user) {
24
- subjectUser = {
+ return {
25
login: user.login,
26
avatarUrl: user.avatarUrl,
27
htmlUrl: user.htmlUrl,
28
type: user.type,
29
};
30
31
- return subjectUser;
32
}
33
34
35
+ return undefined;
36
37
38
/**
0 commit comments