js: Use ES6 object literal shorthand syntax.

Generated by ESLint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-20 13:18:43 -07:00
parent b2745f6e41
commit 96dcc0ce6e
189 changed files with 1328 additions and 1326 deletions

View File

@@ -4,7 +4,7 @@ exports.fetch_and_render_message_history = function (message) {
channel.get({
url: "/json/messages/" + message.id + "/history",
data: {message_id: JSON.stringify(message.id)},
success: function (data) {
success(data) {
const content_edit_history = [];
let prev_datestamp = null;
@@ -54,7 +54,7 @@ exports.fetch_and_render_message_history = function (message) {
}),
);
},
error: function (xhr) {
error(xhr) {
ui_report.error(
i18n.t("Error fetching message edit history"),
xhr,