mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-28 13:01:30 +02:00
save one indent level in error handling for add_ignore
This commit is contained in:
parent
74e593c43c
commit
6aa87f3423
@ -84,10 +84,9 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
|
||||
|
||||
for ignore_file in &config.ignore_files {
|
||||
let result = walker.add_ignore(ignore_file);
|
||||
if let Some(err) = result {
|
||||
match err {
|
||||
ignore::Error::Partial(_) => (),
|
||||
_ => {
|
||||
match result {
|
||||
Some(ignore::Error::Partial(_)) => (),
|
||||
Some(err) => {
|
||||
print_error!(
|
||||
"{}",
|
||||
format!(
|
||||
@ -97,7 +96,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user