Skip to content

Commit 7484679

Browse files
committed
Fixes
1 parent a8731ed commit 7484679

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

crates/pet-python-utils/src/version.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ fn get_python_exe_used_to_create_venv<T: AsRef<Path>>(executable: T) -> Option<P
7878
warn!("Attempted to determine creator of virtual environment, but the env executable ({:?}) is not in the expected location.", executable.as_ref());
7979
return None;
8080
}
81-
} else {
82-
if parent_dir.file_name().unwrap_or_default() != "bin" {
83-
warn!("Attempted to determine creator of virtual environment, but the env executable ({:?}) is not in the expected location.", executable.as_ref());
84-
return None;
85-
}
81+
}
82+
if parent_dir.file_name().unwrap_or_default() != "bin" {
83+
warn!("Attempted to determine creator of virtual environment, but the env executable ({:?}) is not in the expected location.", executable.as_ref());
84+
return None;
8685
}
8786

8887
let symlink = resolve_symlink(&executable)?;

0 commit comments

Comments
 (0)