Skip to content

Commit

Permalink
removed unneeded returns
Browse files Browse the repository at this point in the history
  • Loading branch information
bluez-dev authored and trumank committed Mar 28, 2024
1 parent 397f09f commit 7ed41a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1791,8 +1791,7 @@ impl eframe::App for App {
};

// Orders by Enabled, then by Approval / Provider, then by Name
return mc_b
.enabled
mc_b.enabled
.cmp(&mc_a.enabled)
.then_with(|| {
let Some(tags_a) = info_a.modio_tags else {
Expand All @@ -1801,10 +1800,10 @@ impl eframe::App for App {
let Some(tags_b) = info_b.modio_tags else {
return Ordering::Equal;
};
return tags_a.approval_status.cmp(&tags_b.approval_status);
tags_a.approval_status.cmp(&tags_b.approval_status)
})
.then(info_a.provider.cmp(info_b.provider))
.then(info_a.name.to_lowercase().cmp(&info_b.name.to_lowercase()));
.then(info_a.name.to_lowercase().cmp(&info_b.name.to_lowercase()))
});
}
}
Expand Down

0 comments on commit 7ed41a3

Please sign in to comment.