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
co-authored by Claude Opus 4.6
parent c8b2dcde09
commit 49624d22bc
+3 -7
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) {