Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit e6dd201

Browse files
committed
refactor(hoverifier): improve variable naming
1 parent 24f9688 commit e6dd201

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hoverifier.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,13 @@ export const createHoverifier = ({
546546
// Remember active position in state for blame and range expansion
547547
selectedPosition: position,
548548
})
549-
const rows = getCodeElementsInRange({ codeView, position, getCodeElementFromLineNumber })
550-
for (const { element } of rows) {
549+
const codeElements = getCodeElementsInRange({ codeView, position, getCodeElementFromLineNumber })
550+
for (const { element } of codeElements) {
551551
convertNode(element)
552552
}
553553
// Scroll into view
554-
if (rows.length > 0) {
555-
scrollIntoCenterIfNeeded(scrollElement, codeView, rows[0].element)
554+
if (codeElements.length > 0) {
555+
scrollIntoCenterIfNeeded(scrollElement, codeView, codeElements[0].element)
556556
}
557557
})
558558
)

0 commit comments

Comments
 (0)