Skip to content

Commit 9ca515f

Browse files
committed
Cleanup
1 parent e36252a commit 9ca515f

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

core/src/main/java/software/xdev/mockserver/codec/PathParametersDecoder.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,10 @@ public NottableString normalisePathWithParametersForMatching(final HttpRequest m
5757
for(final String pathPart : matcher.getPath().getValue().split("/"))
5858
{
5959
final Matcher pathParameterName = PATH_VARIABLE_NAME_PATTERN.matcher(pathPart);
60-
if(pathParameterName.matches())
61-
{
62-
pathParts.add(".*");
63-
}
64-
else
65-
{
66-
pathParts.add(pathPart);
67-
}
60+
pathParts.add(pathParameterName.matches() ? ".*" : pathPart);
6861
}
6962
return string(String.join("/", pathParts) + (value.endsWith("/") ? "/" : ""));
7063
}
71-
return matcher.getPath();
7264
}
7365
return matcher.getPath();
7466
}

0 commit comments

Comments
 (0)