diff options
author | Yuri Gorshenin <y@maps.me> | 2016-06-17 15:17:15 +0300 |
---|---|---|
committer | Yuri Gorshenin <y@maps.me> | 2016-06-17 17:23:31 +0300 |
commit | 6334404df5a5133c81d24932d4683ac2069864d3 (patch) | |
tree | fc2bacaa93c3bdafbf7842be23406dadbdb4d870 /indexer/search_string_utils.cpp | |
parent | 683250079ac00a81920ed9cc101239cee4ed2f9c (diff) |
Review fixes.
Diffstat (limited to 'indexer/search_string_utils.cpp')
-rw-r--r-- | indexer/search_string_utils.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/indexer/search_string_utils.cpp b/indexer/search_string_utils.cpp index ade404f93d..9e792e2755 100644 --- a/indexer/search_string_utils.cpp +++ b/indexer/search_string_utils.cpp @@ -234,16 +234,11 @@ void StreetTokensFilter::Put(strings::UniString const & token, bool isPrefix, si { m_delayedToken = token; m_delayedTag = tag; + return; } - else - { + if (m_numSynonyms == 2) EmitToken(m_delayedToken, m_delayedTag); - EmitToken(token, tag); - } - } - else - { - EmitToken(token, tag); } + EmitToken(token, tag); } } // namespace search |