Skip to content
Myr

save one indent level in error handling for add_ignore

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alexandru Macovei · committed by David Peter · parent 74e593c · Browse files · 1 file+12 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−13 removed

  • other:+12 added−13 removed

1 file+12 added−13 removed

modified:src/walk.rs+12 added-13 removed
82 unmodified lines
83 }8485 for ignore_file in &config.ignore_files {86 let result = walker.add_ignore(ignore_file);87 if let Some(err) = result {88 match err {89 ignore::Error::Partial(_) => (),90 _ => {91 print_error!(92 "{}",93 format!(94 "Malformed pattern in custom ignore file '{}': {}.",95 ignore_file.to_string_lossy(),96 err.description()97 )98 );87 match result {88 Some(ignore::Error::Partial(_)) => (),89 Some(err) => {90 print_error!(91 "{}",92 format!(93 "Malformed pattern in custom ignore file '{}': {}.",94 ignore_file.to_string_lossy(),95 err.description()96 )97 );99 }98 }99 None => (),100 }101 }102103 for path_entry in path_iter {
274 unmodified lines