Skip to content

Commit

Permalink
Inline isSegmentOptional
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Sep 27, 2024
1 parent 89abca1 commit c688966
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions waspc/src/Wasp/Util/WebRouterPath.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ getRouteSegments = map parseSegment . splitOn "/"
then OptionalStaticSegment segmentValue
else RequiredStaticSegment segmentValue

isSegmentOptional :: String -> Bool
isSegmentOptional = isSuffixOf "?"
isSegmentOptional = isSuffixOf "?"

0 comments on commit c688966

Please sign in to comment.