From 241d16e674aff119fb0ad1f0b4b7fdbe1a3cb295 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 7 Jun 2024 09:00:31 +1000 Subject: [PATCH] more changes --- crates/pet-conda/src/manager.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/pet-conda/src/manager.rs b/crates/pet-conda/src/manager.rs index 35413deb..07e6f84c 100644 --- a/crates/pet-conda/src/manager.rs +++ b/crates/pet-conda/src/manager.rs @@ -74,12 +74,12 @@ impl CondaManager { } } pub fn from(path: &Path) -> Option { + 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) {