Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
silverwind
2026-02-17 22:05:47 +01:00
committed by GitHub
co-authored by Copilot
parent faa7680555
commit d00a6083fc
+2 -2
View File
@@ -373,11 +373,11 @@ function initDiffExpandAllLines() {
});
// Handle individual expand button clicks
addDelegatedEventListener(document, 'click', '.code-expander-button', (btn, e) => {
addDelegatedEventListener(document, 'click', '.code-expander-button', async (btn, e) => {
e.preventDefault();
const tr = btn.closest('tr');
const url = btn.getAttribute('data-url');
if (tr && url) fetchBlobExcerpt(tr, url);
if (tr && url) await fetchBlobExcerpt(tr, url);
});
}