From 859da6a2dc2ba7529806a3a2d7a6b2cd698580d5 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Wed, 29 Oct 2025 09:11:15 +0900 Subject: [PATCH] Fix for Useless conditional Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/schema-routes/schema-routes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/schema-routes/schema-routes.ts b/src/schema-routes/schema-routes.ts index b570502e..f339cfa0 100644 --- a/src/schema-routes/schema-routes.ts +++ b/src/schema-routes/schema-routes.ts @@ -241,9 +241,7 @@ export class SchemaRoutes { routeParam.name = lodash.camelCase(routeParam.name); } - if (routeParam) { - routeParams[routeParam.in].push(routeParam); - } + routeParams[routeParam.in].push(routeParam); }); // used in case when path parameters is not declared in requestInfo.parameters ("in": "path")