Skip to content

Commit

Permalink
fix last coverage hit
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Oct 7, 2024
1 parent 97a715c commit 4633ab2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reactpy_router/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def _match_route(
if match is not None:
if select == "first":
return [match]
matches.append(match)

# This is no longer used by `reactpy-router`, since `react-router>=6.0.0` no longer supports
# multiple matches. However, it's kept here to support future changes.
matches.append(match) # pragma: no cover

if not matches:
_logger.debug("No matching route found for %s", location.pathname)
Expand Down

0 comments on commit 4633ab2

Please sign in to comment.