eslint: Fix no-useless-concat.

https://eslint.org/docs/rules/no-useless-concat

And add some escaping to static/js/markdown.js while I’m here.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-10-07 04:17:55 -07:00
committed by Tim Abbott
parent 043c34d944
commit 81d21068b5
13 changed files with 41 additions and 95 deletions

View File

@@ -81,7 +81,7 @@ function make_stream_default(stream_id) {
exports.delete_default_stream = function (stream_id, default_stream_row, alert_element) {
channel.del({
url: "/json/default_streams" + "?" + $.param({stream_id}),
url: "/json/default_streams?" + $.param({stream_id}),
error(xhr) {
ui_report.generic_row_button_error(xhr, alert_element);
},