Fix the binaries that use the new optional filters

This commit is contained in:
Clément Renault 2021-12-09 11:50:12 +01:00
parent 25faef67d0
commit 1c6c89f345
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
2 changed files with 4 additions and 3 deletions

View file

@ -250,8 +250,9 @@ impl Search {
}
if let Some(ref filter) = self.filter {
let condition = milli::Filter::from_str(filter)?;
search.filter(condition);
if let Some(condition) = milli::Filter::from_str(filter)? {
search.filter(condition);
}
}
if let Some(offset) = self.offset {