Remove unnecessary 'async' keyword

This commit is contained in:
deepsource-autofix[bot]
2022-09-05 17:25:36 +00:00
committed by GitHub
parent 85b549458d
commit c478f83f70
9 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
function allowAllTraffic(router, str, type) {
router.options(str, async function (req, res, next) {
router.options(str, function (req, res, next) {
res.set("Access-Control-Allow-Origin", "*"); //we'll allow it for now
res.set("Access-Control-Allow-Methods", type || "GET");
res.set("Access-Control-Allow-Headers", "Content-Type");