Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/helpers.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -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<string>{
const response = await apiRequestAuth(url, 'GET', token);

return response.data.html_url;
Expand DownExpand Up@@ -152,7 +152,7 @@ export async function generateGitHubWebUrl(
notification: Notification,
accounts: AuthState,
): Promise<string>{
let url;
let url: string;

if (notification.subject.latest_comment_url){
url = await getHtmlUrl(
Expand Down