Use == instead of === to check undefined

This commit is contained in:
syuilo 2018-08-29 16:28:39 +09:00
parent 9654ffab42
commit 88f84b8a3d

View file

@ -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);
}