From c56c33ad3fb70b0be26c4469accdc0ffc7de6f8c Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Wed, 15 Apr 2020 18:23:21 +0200 Subject: [PATCH] Fix linting --- source/core/utils/weakable-map.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }