diff --git a/source/core/utils/weakable-map.ts b/source/core/utils/weakable-map.ts index b7322d5d8..d5ff95198 100644 --- a/source/core/utils/weakable-map.ts +++ b/source/core/utils/weakable-map.ts @@ -18,16 +18,16 @@ export default class WeakableMap { get(key: K): V | undefined { if (typeof key === 'object') { return this.weakMap.get(key as unknown as object); - } else { - return this.map.get(key); } + + return this.map.get(key); } has(key: K): boolean { if (typeof key === 'object') { return this.weakMap.has(key as unknown as object); - } else { - return this.map.has(key); } + + return this.map.has(key); } }