From: JTH Date: Mon, 3 Oct 2022 12:00:45 +0000 (+0200) Subject: Use `[]` instead of `new Array()` X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=e7de58d3688ea3b80201da15b44e30782d72cd4e;p=dfde%2Fquickmods.git Use `[]` instead of `new Array()` --- diff --git a/quickmod.user.js b/quickmod.user.js index 8dbbd14..3ca0bd8 100644 --- a/quickmod.user.js +++ b/quickmod.user.js @@ -152,7 +152,7 @@ async function remove_post_handler(event) { * So essentially, we do not have any asynchronous execution here, * unfortunately. */ - const errors = new Array(); + const errors = []; try { await send_mcp_request_archival(post, splitReason); } catch (err) {