0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-19 15:58:12 +01:00

Remove unnecessary code

This commit is contained in:
Lunny Xiao 2025-12-11 15:21:01 -08:00
parent dbfa95bf23
commit 3140aacc51
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -25,6 +25,8 @@ function initRepoDiffFileBox(el: HTMLElement) {
hideElem(queryElemSiblings(target));
showElem(target);
}));
highlightDiffSelectionFromHash();
}
function initRepoDiffConversationForm() {
@ -156,8 +158,6 @@ async function onShowMoreFiles() {
initViewedCheckboxListenerFor();
initImageDiff();
initDiffHeaderPopup();
// Re-apply hash selection in case the target was just loaded
await highlightDiffSelectionFromHash();
}
async function loadMoreFiles(btn: Element): Promise<boolean> {