eslint: Fix unicorn/consistent-destructuring.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-01-22 17:44:02 -08:00
committed by Tim Abbott
parent 6cd694b8e3
commit 2e501c8667
2 changed files with 2 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ class CommonUtils {
async send_message(page, type, params) { async send_message(page, type, params) {
// If a message is outside the view, we do not need // If a message is outside the view, we do not need
// to wait for it to be processed later. // to wait for it to be processed later.
const {outside_view} = params; const outside_view = params.outside_view;
delete params.outside_view; delete params.outside_view;
// Compose box content should be empty before sending the message. // Compose box content should be empty before sending the message.

View File

@@ -147,7 +147,7 @@ exports.update_messages = function update_messages(events) {
const new_topic = util.get_edit_event_topic(event); const new_topic = util.get_edit_event_topic(event);
const {new_stream_id} = event; const new_stream_id = event.new_stream_id;
// A topic edit may affect multiple messages, listed in // A topic edit may affect multiple messages, listed in
// event.message_ids. event.message_id is still the first message // event.message_ids. event.message_id is still the first message