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

Commit cf6635a

Browse files
committed
chore: cleanup comments and unneeded cast
1 parent 973af71 commit cf6635a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hoverifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,14 @@ export const createHoverifier = ({
406406
// Reset the hover position, it's gonna be repositioned after the hover was rendered
407407
hoverOverlayPosition: undefined,
408408
})
409-
const currentHighlighted = codeView!.querySelector('.selection-highlight')
409+
const currentHighlighted = codeView.querySelector('.selection-highlight')
410410
if (currentHighlighted) {
411411
currentHighlighted.classList.remove('selection-highlight')
412412
}
413413
if (!HoverMerged.is(hoverOrError) || !hoverOrError.range) {
414414
return
415415
}
416-
// LSP is 0-indexed, the code in the webapp currently is 1-indexed
416+
// LSP is 0-indexed, the code here is currently 1-indexed
417417
const { line, character } = hoverOrError.range.start
418418
const token = getTokenAtPosition(codeView, { line: line + 1, character: character + 1 }, dom, part)
419419
if (!token) {

0 commit comments

Comments
 (0)