Skip to content

Commit

Permalink
Merge pull request #3 from stan-at-work/added-interceptor-feature-and…
Browse files Browse the repository at this point in the history
…-general-improvements

Fixed linter issue
  • Loading branch information
Sten435 authored Aug 4, 2024
2 parents af6f9e5 + 040addc commit 2eac751
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package/lib/src/beam_stack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,11 @@ abstract class BeamStack<T extends RouteInformationSerializable> extends ChangeN
final regex = pathPattern.toRegExp;
final hasMatch = regex.hasMatch(uri.toString());

if (hasMatch)
if (hasMatch) {
return true;
else
} else {
continue;
}
}
}
return false;
Expand All @@ -396,10 +397,11 @@ abstract class BeamStack<T extends RouteInformationSerializable> extends ChangeN
final regex = guardPathPattern.toRegExp;
final hasMatch = regex.hasMatch(path);

if (hasMatch)
if (hasMatch) {
return true;
else
} else {
continue;
}
}

final asteriskIndex = guardPathPattern.indexOf('*');
Expand Down

0 comments on commit 2eac751

Please sign in to comment.