mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 05:07:19 +09: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…
x
Reference in New Issue
Block a user