Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jun 6, 2024
1 parent fe33c5a commit 241d16e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/pet-conda/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ impl CondaManager {
}
}
pub fn from(path: &Path) -> Option<CondaManager> {
if !is_conda_env(path) {
return None;
}
if let Some(manager) = get_conda_manager(path) {
Some(manager)
} else {
if !is_conda_env(path) {
return None;
}
// Possible this is a conda environment in the `envs` folder
let path = path.parent()?.parent()?;
if let Some(manager) = get_conda_manager(path) {
Expand Down

0 comments on commit 241d16e

Please sign in to comment.