diff --git a/web_src/js/features/repo-diff.ts b/web_src/js/features/repo-diff.ts index 1c5ae24cf9..92ae0dfd57 100644 --- a/web_src/js/features/repo-diff.ts +++ b/web_src/js/features/repo-diff.ts @@ -283,13 +283,9 @@ function initRepoDiffHashChangeListener() { const expandAllSavedState = new Map(); async function fetchBlobExcerpt(tr: Element, url: string): Promise { - 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) {