Skip to content

Commit e9fcf87

Browse files
committed
Fixes
1 parent 7484679 commit e9fcf87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ 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-
}
82-
if parent_dir.file_name().unwrap_or_default() != "bin" {
81+
} else if parent_dir.file_name().unwrap_or_default() != "bin" {
8382
warn!("Attempted to determine creator of virtual environment, but the env executable ({:?}) is not in the expected location.", executable.as_ref());
8483
return None;
8584
}

0 commit comments

Comments
 (0)