mirror of
https://github.com/syuilo/ai.git
synced 2024-11-25 06:01:07 +00:00
Use == instead of === to check undefined
This commit is contained in:
parent
9654ffab42
commit
88f84b8a3d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue