Skip to content

Commit 731bbcf

Browse files
committed
refactor: client formatting
Signed-off-by: Adam Setch <[email protected]>
1 parent f184ee7 commit 731bbcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/utils/api/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function listNotificationsForAuthenticatedUser(
7171
const url = getGitHubAPIBaseUrl(account.hostname);
7272
url.pathname += 'notifications';
7373
url.searchParams.append('participating', String(settings.participating));
74+
7475
return apiRequestAuth(
7576
url.toString() as Link,
7677
'GET',
@@ -112,6 +113,7 @@ export function markNotificationThreadAsDone(
112113
): AxiosPromise<void> {
113114
const url = getGitHubAPIBaseUrl(hostname);
114115
url.pathname += `notifications/threads/${threadId}`;
116+
115117
return apiRequestAuth(url.toString() as Link, 'DELETE', token, {});
116118
}
117119

@@ -216,6 +218,7 @@ export function getRelease(url: Link, token: Token): AxiosPromise<Release> {
216218
export async function getHtmlUrl(url: Link, token: Token): Promise<string> {
217219
try {
218220
const response = (await apiRequestAuth(url, 'GET', token)).data;
221+
219222
return response.html_url;
220223
} catch (err) {
221224
rendererLogError(
@@ -236,6 +239,7 @@ export async function searchDiscussions(
236239
notification: Notification,
237240
): AxiosPromise<GraphQLSearch<Discussion>> {
238241
const url = getGitHubGraphQLUrl(notification.account.hostname);
242+
239243
return apiRequestAuth(
240244
url.toString() as Link,
241245
'POST',

0 commit comments

Comments
 (0)