clippy: collapse identical if branches

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-11 13:57:58 +02:00
parent 299a2f18b2
commit b21851cc5c
1 changed files with 1 additions and 3 deletions

View File

@ -191,9 +191,7 @@ impl DataStore {
for entry in walker.filter_entry(|e| !is_hidden(e)) {
let path = entry?.into_path();
if let Some(ext) = path.extension() {
if ext == "fidx" {
list.push(path);
} else if ext == "didx" {
if ext == "fidx" || ext == "didx"{
list.push(path);
}
}