Skip to content

Commit 96f429f

Browse files
Fix for Useless conditional (#1479)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent a16409e commit 96f429f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/schema-routes/schema-routes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,7 @@ export class SchemaRoutes {
241241
routeParam.name = lodash.camelCase(routeParam.name);
242242
}
243243

244-
if (routeParam) {
245-
routeParams[routeParam.in].push(routeParam);
246-
}
244+
routeParams[routeParam.in].push(routeParam);
247245
});
248246

249247
// used in case when path parameters is not declared in requestInfo.parameters ("in": "path")

0 commit comments

Comments
 (0)