Skip to content

Commit ad7538c

Browse files
setchyadufr
authored andcommitted
fix: add type to urls (gitify-app#811)
1 parent e12a779 commit ad7538c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/helpers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function formatSearchQueryString(
6363
return `${title} in:title repo:${repo} updated:>${addHours(lastUpdated, -2)}`;
6464
}
6565

66-
export async function getHtmlUrl(url: string, token: string) {
66+
export async function getHtmlUrl(url: string, token: string): Promise<string> {
6767
const response = await apiRequestAuth(url, 'GET', token);
6868

6969
return response.data.html_url;
@@ -152,7 +152,7 @@ export async function generateGitHubWebUrl(
152152
notification: Notification,
153153
accounts: AuthState,
154154
): Promise<string> {
155-
let url;
155+
let url: string;
156156

157157
if (notification.subject.latest_comment_url) {
158158
url = await getHtmlUrl(

0 commit comments

Comments
 (0)