]> git.aero2k.de Git - dfde/quickmods.git/commitdiff
Use `[]` instead of `new Array()`
authorJTH <JTH@debianforum.de>
Mon, 3 Oct 2022 12:00:45 +0000 (14:00 +0200)
committerThorsten <mail@aero2k.de>
Mon, 3 Oct 2022 21:24:24 +0000 (23:24 +0200)
quickmod.user.js

index 8dbbd140f67ca32fbbec5c73f6d05bbee4e20f56..3ca0bd892b1a4eedc0c6191574b4d135945a581b 100644 (file)
@@ -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) {