From 969bfe59e042f2085b48634091127475ff2a6d71 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:06:24 +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 1f0910c 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/validateInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/validateInput.js b/middleware/validateInput.js index fbfd6c95d..bfbcdd245 100644 --- a/middleware/validateInput.js +++ b/middleware/validateInput.js @@ -6,7 +6,7 @@ const { z } = require('zod') -function validateInput(schema) { +function validateInput (schema) { return (req, res, next) => { try { // Validate content-type @@ -37,7 +37,7 @@ function validateInput(schema) { return res.status(400).json({ error: 'Validation failed', code: 'VALIDATION_ERROR', - details: error.errors.map(err => ({ + details: error.errors.map((err) => ({ path: err.path.join('.'), message: err.message, code: err.code