Skip to content

Commit ae191f0

Browse files
committed
update readabilty
1 parent c25d59b commit ae191f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/uid2/operator/StatsCollectorVerticleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void allValidPathsAllowed(Vertx vertx, VertxTestContext testContext) throws Inte
113113
for(String endpoint: validEndpoints) {
114114
String withoutVersion = endpoint;
115115
if (endpoint.startsWith("/v2/") || endpoint.startsWith("/v3/")) {
116-
withoutVersion = endpoint.substring(endpoint.indexOf("/", 1) + 1);
116+
withoutVersion = endpoint.substring(4);
117117
} else if (endpoint.startsWith("/")) {
118118
withoutVersion = endpoint.substring(1);
119119
}

0 commit comments

Comments
 (0)