Skip to content

Commit

Permalink
fix: proper scanning of the conda-meta folder for json entries (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Mar 13, 2024
1 parent ae19549 commit f628264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Prefix {
{
let entry = entry.into_diagnostic()?;
let path = entry.path();
if path.ends_with(".json") {
if !path.is_file() || path.extension() != Some("json".as_ref()) {
continue;
}

Expand Down

0 comments on commit f628264

Please sign in to comment.