Skip to content

Commit 3114f5c

Browse files
chargomebricefriha
andauthored
update if else block
Co-authored-by: Brice Friha <[email protected]>
1 parent 71b1121 commit 3114f5c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/nextjs/src/config/manifest/buildManifest.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ function getDynamicRouteSegment(name: string): string {
3838
// Required catchall: [...param]
3939
const paramName = name.slice(4, -1); // Remove [... and ]
4040
return `:${paramName}*`;
41-
} else {
42-
// Regular dynamic: [param]
43-
return `:${name.slice(1, -1)}`;
44-
}
41+
}
42+
// Regular dynamic: [param]
43+
return `:${name.slice(1, -1)}`;
4544
}
4645

4746
function buildRegexForDynamicRoute(routePath: string): { pattern: string; paramNames: string[] } {

0 commit comments

Comments
 (0)