diff --git a/unirest-modules-mocks/src/main/java/kong/unirest/core/Routes.java b/unirest-modules-mocks/src/main/java/kong/unirest/core/Routes.java index c03d30ec..46a1ec62 100644 --- a/unirest-modules-mocks/src/main/java/kong/unirest/core/Routes.java +++ b/unirest-modules-mocks/src/main/java/kong/unirest/core/Routes.java @@ -74,14 +74,6 @@ boolean matches(HttpMethod httpMethod, Path url) { } private Optional getBestMatch(HttpRequest request) { - Optional i = getBestMatch(request, true); - if(i.isPresent()){ - return i; - } - return getBestMatch(request, false); - } - - private Optional getBestMatch(HttpRequest request, boolean expected) { Map map = new TreeMap<>(); invokes.stream() .forEach(i -> {