Skip to content

Commit

Permalink
refactor: replace map_err with expect
Browse files Browse the repository at this point in the history
Co-authored-by: Thayne McCombs <astrothayne@gmail.com>
  • Loading branch information
skoriop and tmccombs committed Oct 18, 2023
1 parent 8c50bc7 commit 27c5700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn scan(paths: &[PathBuf], patterns: Arc<Vec<Regex>>, config: Arc<Config>) -
if config.read_vcsignore {
override_builder
.add("!.git")
.map_err(|e| anyhow!("Malformed default exclude pattern: {}", e))?;
.expect("Invalid exclude pattern"));
}

let overrides = override_builder
Expand Down

0 comments on commit 27c5700

Please sign in to comment.