Skip to content

Commit

Permalink
Fix filtering in version loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jun 25, 2023
1 parent 5f7edbc commit ec39aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl Context {
for e in self.dl_dir().read_dir()? {
let e = e?;
let filename = e.file_name().into_string().unwrap();
if !filter(&filename) && filename.ends_with(".tar.xz") {
if !(filter(&filename) && filename.ends_with(".tar.xz")) {
continue;
}
println!("looking inside {} for a version", filename);
Expand Down

0 comments on commit ec39aa7

Please sign in to comment.