Skip to content

Commit

Permalink
remove non null assertion
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
AjayvirS and coderabbitai[bot] authored Dec 11, 2024
1 parent 9973ade commit 8aa0c0f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ export class SplitPaneHeaderComponent implements OnChanges, OnInit, OnDestroy {
}

triggerMouseEnter(file: FileWithHasMatch, idx: number) {
this.dropdownHoverSubject()!.next({ idx: idx, file: file });
const subject = this.dropdownHoverSubject();
if (subject) {
subject.next({ idx, file });
}
}

/**
Expand Down

0 comments on commit 8aa0c0f

Please sign in to comment.