Skip to content

Commit

Permalink
small function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofthecactus committed Dec 1, 2022
1 parent 4fa421f commit a356be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/config/routesConvention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ export function createRoutePath(partialRouteId: string): string | undefined {
);
}

function isCloseOptionalSegment(charCheck: String = char) {
function isCloseOptionalSegment() {
return (
charCheck === optionalEnd &&
char === optionalEnd &&
nextChar !== optionalEnd &&
(isSegmentSeparator(nextChar) || nextChar === undefined) &&
inOptionalSegment &&
Expand Down

0 comments on commit a356be4

Please sign in to comment.