Skip to content

Commit 4633ab2

Browse files
committed
fix last coverage hit
1 parent 97a715c commit 4633ab2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reactpy_router/routers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ def _match_route(
9999
if match is not None:
100100
if select == "first":
101101
return [match]
102-
matches.append(match)
102+
103+
# This is no longer used by `reactpy-router`, since `react-router>=6.0.0` no longer supports
104+
# multiple matches. However, it's kept here to support future changes.
105+
matches.append(match) # pragma: no cover
103106

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

0 commit comments

Comments
 (0)