Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jun 5, 2024
1 parent 0629062 commit 08761ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/pet-conda/src/environment_locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub fn get_known_conda_install_locations(env_vars: &EnvVariables) -> Vec<PathBuf
// We use lower cases above, but it could be in any case on disc.
// We do not want to have duplicates in different cases.
// & we'd like to preserve the case of the original path as on disc.
known_paths = known_paths.iter().map(get_absolute_path).collect();
known_paths = known_paths.iter().map(|p| get_absolute_path(&p)).collect();
known_paths.sort();
known_paths.dedup();

Expand Down
2 changes: 1 addition & 1 deletion crates/pet-conda/src/environments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn get_conda_dir_from_cmd(cmd_line: String) -> Option<PathBuf> {
// The casing in history might not be same as that on disc
// We do not want to have duplicates in different cases.
// & we'd like to preserve the case of the original path as on disc.
return Some(get_absolute_path(cmd_line).to_path_buf());
return Some(get_absolute_path(&cmd_line).to_path_buf());
}
}
None
Expand Down

0 comments on commit 08761ad

Please sign in to comment.