From 88f84b8a3d9d9e3ff51284dedd385a32d0b7e892 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 Aug 2018 16:28:39 +0900 Subject: [PATCH] Use == instead of === to check undefined --- src/utils/get-collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/get-collection.ts b/src/utils/get-collection.ts index 760ef76..90ce705 100644 --- a/src/utils/get-collection.ts +++ b/src/utils/get-collection.ts @@ -5,7 +5,7 @@ export default function(db: loki, name: string, opts?: any): loki.Collection { collection = db.getCollection(name); - if (collection === null) { + if (collection == null) { collection = db.addCollection(name, opts); }