clippy: collapse identical if branches
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
299a2f18b2
commit
b21851cc5c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user