We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac86ec2 commit 2530438Copy full SHA for 2530438
crates/pet/tests/ci_test.rs
@@ -719,10 +719,11 @@ fn get_python_run_command(env: &PythonEnvironment) -> Vec<String> {
719
if env.executable.is_none() {
720
panic!("Conda environment without executable");
721
}
722
- let conda_exe = match env.manager.clone() {
723
- Some(manager) => manager.executable.to_str().unwrap_or_default().to_string(),
724
- None => get_conda_exe().to_string(),
725
- };
+ let mut conda_exe = get_conda_exe().to_string();
+
+ if let Some(manager) = &env.manager {
+ conda_exe = manager.executable.to_str().unwrap_or_default().to_string();
726
+ }
727
if let Some(name) = env.name.clone() {
728
return vec![
729
conda_exe,
0 commit comments