Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ryber committed Sep 7, 2024
1 parent 197f2fe commit d6f93f1
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ boolean matches(HttpMethod httpMethod, Path url) {
}

private Optional<Invocation> getBestMatch(HttpRequest request) {
Optional<Invocation> i = getBestMatch(request, true);
if(i.isPresent()){
return i;
}
return getBestMatch(request, false);
}

private Optional<Invocation> getBestMatch(HttpRequest request, boolean expected) {
Map<Integer, Invocation> map = new TreeMap<>();
invokes.stream()
.forEach(i -> {
Expand Down

0 comments on commit d6f93f1

Please sign in to comment.