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

@@ -139,9 +139,7 @@ exports.is_known_user_id = function (user_id) {
};
function sort_numerically(user_ids) {
user_ids.sort(function (a, b) {
return a - b;
});
user_ids.sort((a, b) => a - b);
return user_ids;
}
@@ -859,9 +857,9 @@ exports.get_message_people = function () {
exports.get_active_message_people = function () {
const message_people = exports.get_message_people();
const active_message_people = message_people.filter(function (item) {
return active_user_dict.has(item.user_id);
});
const active_message_people = message_people.filter((item) =>
active_user_dict.has(item.user_id)
);
return active_message_people;
};