From 74df770429f7fc28963622609dedb3c6e26cc183 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Thu, 22 Feb 2024 16:07:21 -0400 Subject: [PATCH] fix: add type to urls --- src/utils/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index a90e4b212..6410afa75 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -63,7 +63,7 @@ export function formatSearchQueryString( return `${title} in:title repo:${repo} updated:>${addHours(lastUpdated, -2)}`; } -export async function getHtmlUrl(url: string, token: string) { +export async function getHtmlUrl(url: string, token: string): Promise { const response = await apiRequestAuth(url, 'GET', token); return response.data.html_url; @@ -152,7 +152,7 @@ export async function generateGitHubWebUrl( notification: Notification, accounts: AuthState, ): Promise { - let url; + let url: string; if (notification.subject.latest_comment_url) { url = await getHtmlUrl(