From 8bdd9308f60cf615b89d2fe71784eb5667c81967 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 2 Oct 2024 09:18:32 -0700 Subject: [PATCH] refactor: Use null instead of undefined. --- core/flyout_base.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/flyout_base.ts b/core/flyout_base.ts index c5994bf900..0c62f3b4c2 100644 --- a/core/flyout_base.ts +++ b/core/flyout_base.ts @@ -937,12 +937,12 @@ export abstract class Flyout * Returns the inflater responsible for constructing items of the given type. * * @param type The type of flyout content item to provide an inflater for. - * @returns An inflater object for the given type, or undefined if no inflater + * @returns An inflater object for the given type, or null if no inflater * is registered for that type. */ - protected getInflaterForType(type: string): IFlyoutInflater | undefined { + protected getInflaterForType(type: string): IFlyoutInflater | null { if (this.inflaters.has(type)) { - return this.inflaters.get(type); + return this.inflaters.get(type) ?? null; } const InflaterClass = registry.getClass( @@ -955,7 +955,7 @@ export abstract class Flyout return inflater; } - return undefined; + return null; } }