javascript_examples: Fix unicorn/no-useless-spread.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-12-06 15:59:08 -08:00 committed by Tim Abbott
parent 872f4b41c1
commit 8a96c68780
1 changed files with 3 additions and 3 deletions

View File

@ -301,9 +301,9 @@ add_example(
add_example("update_message_flags", "/messages/flags:post", 200, async (client, console) => { add_example("update_message_flags", "/messages/flags:post", 200, async (client, console) => {
// Send 3 messages to run this example on // Send 3 messages to run this example on
const message_ids = [...Array.from({length: 3})]; const message_ids = [];
for (let i = 0; i < message_ids.length; i = i + 1) { for (let i = 0; i < 3; i += 1) {
message_ids[i] = await send_test_message(client); message_ids.push(await send_test_message(client));
} }
// {code_example|start} // {code_example|start}