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

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
parent faa7680555
commit d00a6083fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
});
}