Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search_suggestion: Cleanup redundant code in module.
Pratik Chanda75eecebcecd5
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.tsindex a831db89291..4aa6d7bbf81 100644--- a/web/src/search_suggestion.ts+++ b/web/src/search_suggestion.ts@@ -675,14 +675,7 @@ function get_special_filter_suggestions(if (last.negated === true || is_search_operand_negated) {suggestions = suggestions.filter((suggestion) => suggestion !== "-is:resolved")- .map((suggestion) => {- // If the search_string is "is:resolved", we want to suggest "Unresolved topics"- // instead of "Exclude resolved topics".- if (suggestion === "is:resolved") {- return "-" + suggestion;- }- return "-" + suggestion;- });+ .map((suggestion) => "-" + suggestion);}const last_string = Filter.unparse([last]).toLowerCase();