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.

compose_ui: Fix ESLint no-case-declaration error.

Anders Kaseorg3845ac2b56c9
diff --git a/static/js/compose_ui.js b/static/js/compose_ui.js
index 6934227dc2c..87a94b59386 100644
--- a/static/js/compose_ui.js
+++ b/static/js/compose_ui.js
@@ -233,7 +233,7 @@ export function format_text(textarea, type) {
// Ctrl + I: Convert selected text to italic text
wrapSelection(field, "*");
break;
- case "link":
+ case "link": {
// Ctrl + L: Insert a link to selected text
wrapSelection(field, "[", "](url)");
@@ -244,5 +244,6 @@ export function format_text(textarea, type) {
const new_end = new_start + "url".length;
field.setSelectionRange(new_start, new_end);
break;
+ }
}
}