fix: coverage

This commit is contained in:
Nolan Lawson 2023-11-26 11:36:40 -08:00
parent 5ec1417f9a
commit f17d7b6524
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@
// https://github.com/sveltejs/svelte/issues/6521
// Also note tabpanelElement can be null if the element is disconnected immediately after connected
export function resetScrollTopIfPossible (element) {
if (element) {
/* istanbul ignore else */
if (element) { // Makes me nervous not to have this `if` guard
element.scrollTop = 0
}
}