Skip to content

Commit

Permalink
Small fixes as requested by @carlosmiranda
Browse files Browse the repository at this point in the history
The indentation requested change doesn't seem to pass static analysis,
as witnessed on Travis CI's logs.
  • Loading branch information
Yohann Ferreira committed May 14, 2015
1 parent 76a5bee commit dde36ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/takes/rs/RsWithType.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public RsWithType(final Response res, final CharSequence type) {
new RsWithoutHeader(
new RsWithStatus(res, HttpURLConnection.HTTP_OK),
HEADER
),
HEADER, type
), HEADER, type
)
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/takes/rs/RsWithTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public final class RsWithTypeTest {
@Test
public void replaceTypeToResponse() throws IOException {
final String type = "text/plain";
final String header = "Content-Type: ";
MatcherAssert.assertThat(
new RsPrint(
new RsWithType(
Expand All @@ -55,7 +54,7 @@ public void replaceTypeToResponse() throws IOException {
Matchers.equalTo(
Joiner.on("\r\n").join(
"HTTP/1.1 200 OK",
header + type,
String.format("Content-Type: %s", type),
"",
""
)
Expand Down

0 comments on commit dde36ea

Please sign in to comment.