From a305bdb78d0ff562a399f55c558457d656e5ce4f Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 15 May 2024 22:51:26 +0600 Subject: [PATCH] core/api: no longer reassign to const --- src/core/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/api.js b/src/core/api.js index cdcf216b..c4087e0b 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -79,7 +79,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { // handle express.json errors properly (https://github.com/expressjs/express/issues/4065) app.use('/api/json', (err, req, res, next) => { - const errorText = "invalid json body"; + let errorText = "invalid json body"; const acceptHeader = String(req.header('Accept')) !== "application/json"; if (err || acceptHeader) {