From cf256a547cd996c95c9692332f3e6c2e62c2e2b3 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:57:23 +0200 Subject: [PATCH] Remove unnecessary cast of "enableCorsProxy" --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 7dfbdf2a6..35bcbaadd 100644 --- a/server.js +++ b/server.js @@ -306,7 +306,7 @@ app.use(function (req, res, next) { next(); }); -if (getConfigValue('enableCorsProxy', false) === true || cliArguments.corsProxy) { +if (getConfigValue('enableCorsProxy', false) || cliArguments.corsProxy) { const bodyParser = require('body-parser'); app.use(bodyParser.json()); console.log('Enabling CORS proxy');