Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Apr 15, 2020
1 parent 03f9db7 commit c56c33a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/core/utils/weakable-map.ts
Expand Up @@ -18,16 +18,16 @@ export default class WeakableMap<K, V> {
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);
}
}

0 comments on commit c56c33a

Please sign in to comment.