mirror of https://github.com/zulip/zulip.git
javascript_examples: Fix unicorn/no-useless-spread.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
872f4b41c1
commit
8a96c68780
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue