0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-23 21:33:19 +01:00

Revert error handling in fetchBlobExcerpt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-02-18 07:39:31 +01:00
parent c8b2dcde09
commit 49624d22bc
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -283,13 +283,9 @@ function initRepoDiffHashChangeListener() {
const expandAllSavedState = new Map<string, HTMLElement>();
async function fetchBlobExcerpt(tr: Element, url: string): Promise<void> {
try {
const tempTbody = document.createElement('tbody');
tempTbody.innerHTML = await (await GET(url)).text();
tr.replaceWith(...tempTbody.children);
} catch (error) {
console.error('Error:', error);
}
const tempTbody = document.createElement('tbody');
tempTbody.innerHTML = await (await GET(url)).text();
tr.replaceWith(...tempTbody.children);
}
async function expandAllLines(btn: HTMLElement, fileBox: HTMLElement) {