mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
More strict null checks (#60565)
This commit is contained in:
@@ -728,7 +728,7 @@ export function getLargestChildWidth(parent: HTMLElement, children: HTMLElement[
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
export function isAncestor(testChild: Node | null, testAncestor: Node): boolean {
|
||||
export function isAncestor(testChild: Node | null, testAncestor: Node | null): boolean {
|
||||
while (testChild) {
|
||||
if (testChild === testAncestor) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user