mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
minor formatting changes
This commit is contained in:
parent
80b5b20efb
commit
bc840ecb98
1 changed files with 3 additions and 5 deletions
|
@ -60,7 +60,8 @@ static std::optional<int> queryMatchKeywords(
|
||||||
if (!someMatched) {
|
if (!someMatched) {
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
// this is like the dumbest way you could possibly sort alphabetically
|
// this is like the dumbest way you could possibly sort alphabetically
|
||||||
// but it does enough to make the mods list somewhat 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
|
// 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) {
|
static std::optional<int> queryMatch(ModListQuery const& query, InvalidGeodeFile const& info) {
|
||||||
// if any explicit filters were provided, no match
|
// if any explicit filters were provided, no match
|
||||||
if (
|
if (query.tags.size() || query.keywords.has_value()) {
|
||||||
query.tags.size() ||
|
|
||||||
query.keywords.has_value()
|
|
||||||
) {
|
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue