mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
960174408f
commit
a79322bc94
@@ -180,9 +180,7 @@ exports.per_stream_history = function (stream_id) {
|
||||
|
||||
const recents = my_recents.concat(missing_topics);
|
||||
|
||||
recents.sort(function (a, b) {
|
||||
return b.message_id - a.message_id;
|
||||
});
|
||||
recents.sort((a, b) => b.message_id - a.message_id);
|
||||
|
||||
const names = recents.map((obj) => obj.pretty_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user