From 94ff76711c73a4769cd754ddf6f6b2b6570493f9 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 20 Aug 2021 10:04:22 -0700 Subject: [PATCH] Use 'in' to be more idiomatic --- src/matrix/storage/idb/Store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/storage/idb/Store.ts b/src/matrix/storage/idb/Store.ts index 890785bd..9c49dc57 100644 --- a/src/matrix/storage/idb/Store.ts +++ b/src/matrix/storage/idb/Store.ts @@ -35,7 +35,7 @@ class QueryTargetWrapper { } get keyPath(): string | string[] { - if (this._qt["objectStore"]) { + if ("objectStore" in this._qt) { return (this._qt as IDBIndex).objectStore.keyPath; } else { return this._qt.keyPath;