minor formatting changes

This commit is contained in:
HJfod 2023-04-10 12:50:31 +03:00
parent 80b5b20efb
commit bc840ecb98

View file

@ -60,7 +60,8 @@ static std::optional<int> queryMatchKeywords(
if (!someMatched) {
return std::nullopt;
}
} else {
}
else {
// this is like the dumbest way you could possibly sort alphabetically
// but it does enough to make the mods list somewhat alphabetically
// sorted, at least enough so that if you're scrolling it based on
@ -120,10 +121,7 @@ static std::optional<int> queryMatch(ModListQuery const& query, IndexItemHandle
static std::optional<int> queryMatch(ModListQuery const& query, InvalidGeodeFile const& info) {
// if any explicit filters were provided, no match
if (
query.tags.size() ||
query.keywords.has_value()
) {
if (query.tags.size() || query.keywords.has_value()) {
return std::nullopt;
}
return 0;