Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmartos96 committed Sep 15, 2022
1 parent 1a7d4dc commit c1d4d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/shelf_router/lib/src/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Router {

if (prefix.endsWith('/')) {
_all(
prefix + '<$restPathParam|[^]*>',
'$prefix<$restPathParam|[^]*>',
(Request request, RouterEntry route) {
// Remove path param from extracted route params
final paramsList = [...route.params]..removeLast();
Expand All @@ -222,7 +222,7 @@ class Router {
applyParamsOnHandle: false,
);
_all(
prefix + '/<$restPathParam|[^]*>',
'$prefix/<$restPathParam|[^]*>',
(Request request, RouterEntry route) {
// Remove path param from extracted route params
final paramsList = [...route.params]..removeLast();
Expand Down

0 comments on commit c1d4d07

Please sign in to comment.