Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Remove unnecessary topic_names variable.

Biki-dasb3c2f88b7ba3
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js
index 8729e1e4e0e..6f03bc5f58a 100644
--- a/static/js/composebox_typeahead.js
+++ b/static/js/composebox_typeahead.js
@@ -75,8 +75,7 @@ export function topics_seen_for(stream_name) {
// Fetch topic history from the server, in case we will need it soon.
stream_topic_history_util.get_server_history(stream_id, () => {});
- const topic_names = stream_topic_history.get_recent_topic_names(stream_id);
- return topic_names;
+ return stream_topic_history.get_recent_topic_names(stream_id);
}
function get_language_matcher(query) {
@@ -146,7 +145,7 @@ export function should_enter_send(e) {
this_enter_sends = !has_modifier_key;
} else {
// If enter_sends is not enabled, just hitting
- // Snter should add a newline, but with a
+ // Enter should add a newline, but with a
// non-Shift modifier key held down, we should
// send. With Shift, we shouldn't, because
// Shift+Enter to get a newline is a common