eslint: Enable prefer-arrow-callback.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 16:45:54 -07:00
committed by Tim Abbott
parent 960174408f
commit a79322bc94
160 changed files with 873 additions and 1012 deletions

View File

@@ -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);