]> git.aero2k.de Git - dfde/quickmods.git/blobdiff - quickmod.user.js
Use `[]` instead of `new Array()`
[dfde/quickmods.git] / 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) {