RankedMatch constructor handles empty query just fine
This commit is contained in:
parent
94f4531bc8
commit
7dd05d675c
|
@ -133,12 +133,6 @@ RankedMatchList WordDB::find_matching(StringView query)
|
|||
RankedMatchList res;
|
||||
for (auto&& word : m_words)
|
||||
{
|
||||
if (query.empty())
|
||||
{
|
||||
res.push_back(RankedMatch{word.first, query});
|
||||
continue;
|
||||
}
|
||||
|
||||
if (RankedMatch match{word.first, word.second.letters, query, letters})
|
||||
res.push_back(match);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user