Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Oct 11, 2024
1 parent 8fe328a commit 0c8c671
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ fn app_parse(letter: &str, author: &str, map: &mut Map) {
let x = Version::from(x).unwrap();
let y = Version::from(y).unwrap();

return x > y;
if x == y {
Ordering::Equal
} else if x > y {
Ordering::Less
} else {
Ordering::Greater
}
});

if !versions.is_empty() {
Expand Down

0 comments on commit 0c8c671

Please sign in to comment.