Skip to content

Commit

Permalink
Fixed line indentions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Reiche committed Jun 27, 2019
1 parent 75bced8 commit 572f12e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/takes/facets/fork/FkRegex.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ public FkRegex setRemoveTrailingSlash(final boolean enabled) {
public Opt<Response> route(final Request req) throws Exception {
String path = new RqHref.Base(req).href().path();
if (
this.removeslash
&& path.length() > 1
&& path.charAt(path.length() - 1) == '/'
this.removeslash
&& path.length() > 1
&& path.charAt(path.length() - 1) == '/'
) {
path = path.substring(0, path.length() - 1);
}
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/org/takes/facets/fork/FkRegexTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ public void removesTrailingSlash() throws Exception {
@Test
public void keepsTrailingSlash() throws Exception {
MatcherAssert.assertThat(
new FkRegex(FkRegexTest.TESTPATH, new TkEmpty())
.setRemoveTrailingSlash(false)
.route(
new RqFake(RqMethod.POST, FkRegexTest.TESTPATH)
).has(),
Matchers.is(true)
new FkRegex(FkRegexTest.TESTPATH, new TkEmpty())
.setRemoveTrailingSlash(false)
.route(
new RqFake(RqMethod.POST, FkRegexTest.TESTPATH)
).has(),
Matchers.is(true)
);
}

Expand Down

0 comments on commit 572f12e

Please sign in to comment.