mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 02:53:52 +00:00
js: Add braces to case blocks declaring variables.
This helps to prepare for the migration of `var` to `let` and `const`. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
12bd3c04c0
commit
a547413347
@@ -499,13 +499,14 @@ exports.validation_error = function (error_type, stream_name) {
|
||||
compose_error(i18n.t("Error checking subscription"),
|
||||
$("#stream_message_recipient_stream"));
|
||||
return false;
|
||||
case "not-subscribed":
|
||||
case "not-subscribed": {
|
||||
var sub = stream_data.get_sub(stream_name);
|
||||
var new_row = render_compose_not_subscribed({
|
||||
should_display_sub_button: sub.should_display_subscription_button});
|
||||
compose_not_subscribed_error(new_row, $('#stream_message_recipient_stream'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user