Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Reduce scope of message var.
Steve Howell49a1d5a9a3ac
diff --git a/static/js/stream_subscribers_ui.js b/static/js/stream_subscribers_ui.jsindex 5a8ffcbc653..653cbfab53b 100644--- a/static/js/stream_subscribers_ui.js+++ b/static/js/stream_subscribers_ui.js@@ -268,9 +268,10 @@ function remove_subscriber({stream_id, target_user_id, list_entry}) {if (!sub) {return;}- let message;function removal_success(data) {+ let message;+if (data.removed.length > 0) {// Remove the user from the subscriber list.list_entry.remove();