Skip to content

Commit 71eb675

Browse files
authored
refactor: default to repo url (#967)
1 parent a213db1 commit 71eb675

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/helpers.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export async function generateGitHubWebUrl(
252252
notification: Notification,
253253
accounts: AuthState,
254254
): Promise<string> {
255-
let url: string;
255+
let url = notification.repository.html_url;
256256
const token = getTokenForHost(notification.hostname, accounts);
257257

258258
if (notification.subject.latest_comment_url) {
@@ -275,7 +275,6 @@ export async function generateGitHubWebUrl(
275275
url = getWorkflowRunUrl(notification);
276276
break;
277277
default:
278-
url = notification.repository.html_url;
279278
break;
280279
}
281280
}

0 commit comments

Comments
 (0)