eslint: Enable arrow-body-style.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 16:41:40 -07:00
committed by Tim Abbott
parent aa838ec4bc
commit 615b7fcc2c
46 changed files with 226 additions and 435 deletions

View File

@@ -49,11 +49,9 @@ exports.get_messages_in_topic = function (stream_id, topic) {
// all the messages. Please only use it in case of
// very rare events like topic edits. Its primary
// use case is the new experimental Recent Topics UI.
return message_list.all.all_messages().filter((x) => {
return x.type === 'stream' &&
return message_list.all.all_messages().filter((x) => x.type === 'stream' &&
x.stream_id === stream_id &&
x.topic.toLowerCase() === topic.toLowerCase();
});
x.topic.toLowerCase() === topic.toLowerCase());
};
window.message_util = exports;