Skip to content

Commit 3140aac

Browse files
committed
Remove unnecessary code
1 parent dbfa95b commit 3140aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/repo-diff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function initRepoDiffFileBox(el: HTMLElement) {
2525
hideElem(queryElemSiblings(target));
2626
showElem(target);
2727
}));
28+
29+
highlightDiffSelectionFromHash();
2830
}
2931

3032
function initRepoDiffConversationForm() {
@@ -156,8 +158,6 @@ async function onShowMoreFiles() {
156158
initViewedCheckboxListenerFor();
157159
initImageDiff();
158160
initDiffHeaderPopup();
159-
// Re-apply hash selection in case the target was just loaded
160-
await highlightDiffSelectionFromHash();
161161
}
162162

163163
async function loadMoreFiles(btn: Element): Promise<boolean> {

0 commit comments

Comments
 (0)