We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebd0fa commit 377e76aCopy full SHA for 377e76a
src/utils/subject.ts
@@ -203,11 +203,9 @@ async function getLatestCommentUser(
203
notification: Notification,
204
token: string,
205
): Promise<User> {
206
- const response: IssueComments | ReleaseComments = (
+ const response: IssueComments = (
207
await apiRequestAuth(notification.subject.latest_comment_url, 'GET', token)
208
).data;
209
210
- return (
211
- (response as IssueComments).user ?? (response as ReleaseComments).author
212
- );
+ return response.user;
213
}
0 commit comments