fix: Fix a bug in the Database open-index method

This commit is contained in:
Clément Renault 2019-05-10 14:44:23 +02:00
parent 2844cb5bca
commit 9bba90c47e
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -115,7 +115,7 @@ impl Database {
occupied.get().clone()
},
Entry::Vacant(vacant) => {
if !self.indexes()?.map_or(false, |x| !x.contains(name)) {
if !self.indexes()?.map_or(false, |x| x.contains(name)) {
return Ok(None)
}