From 3615b955226c6c66a36136938ada6e4c96ebeafc Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 1 Jan 2026 06:28:49 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 0b52699 according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- middleware/errorHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/middleware/errorHandler.js b/middleware/errorHandler.js index 9fc75cf74..87a3753f0 100644 --- a/middleware/errorHandler.js +++ b/middleware/errorHandler.js @@ -17,7 +17,7 @@ const ERROR_CODES = { SERVICE_UNAVAILABLE: 503 } -function errorHandler(err, req, res, next) { +function errorHandler (err, req, res, next) { const isDevelopment = process.env.NODE_ENV === 'development' const statusCode = err.statusCode || ERROR_CODES.INTERNAL_ERROR const errorCode = err.code || 'INTERNAL_ERROR' @@ -51,7 +51,7 @@ function errorHandler(err, req, res, next) { res.status(statusCode).json(response) } -function sanitizeErrorMessage(message, isDevelopment) { +function sanitizeErrorMessage (message, isDevelopment) { if (isDevelopment) { return message } @@ -70,7 +70,7 @@ function sanitizeErrorMessage(message, isDevelopment) { let sanitized = message - sensitivePatterns.forEach(pattern => { + sensitivePatterns.forEach((pattern) => { sanitized = sanitized.replace(pattern, '[REDACTED]') })