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")