Skip to content

Commit 99a8eb3

Browse files
committed
Do a minor simplification now that it's PathBuf
The code still worked with the extra step there, but now it's unnecessary.
1 parent 5b206bc commit 99a8eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-path/src/env/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(super) static EXE_INFO: Lazy<Option<BString>> = Lazy::new(|| {
3636
#[cfg(windows)]
3737
Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
3838
let executable = ALTERNATIVE_LOCATIONS.iter().find_map(|prefix| {
39-
let candidate = Path::new(prefix).join(EXE_NAME);
39+
let candidate = prefix.join(EXE_NAME);
4040
candidate.is_file().then_some(candidate)
4141
})?;
4242
gix_trace::debug!(cmd = ?cmd, "invoking git for installation config path in alternate location");

0 commit comments

Comments
 (0)