eslint: Fix unicorn/no-array-callback-reference.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-01-22 17:36:54 -08:00
committed by Tim Abbott
parent 552f4e3d22
commit 6cd694b8e3
29 changed files with 89 additions and 93 deletions

View File

@@ -332,7 +332,9 @@ exports.launch = function () {
(draft_a, draft_b) => draft_b.updatedAt - draft_a.updatedAt,
);
const sorted_formatted_drafts = sorted_raw_drafts.map(exports.format_draft).filter(Boolean);
const sorted_formatted_drafts = sorted_raw_drafts
.map((draft_row) => exports.format_draft(draft_row))
.filter(Boolean);
return sorted_formatted_drafts;
}