mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user