Skip to content

Commit

Permalink
Remove dead code in MockClientHttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen authored and mdeinum committed Jun 29, 2023
1 parent 13528bb commit 0f2157d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,10 @@ protected ClientHttpResponse executeInternal() throws IOException {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.httpMethod);
sb.append(' ').append(this.uri);
sb.append(this.httpMethod).append(' ').append(this.uri);
if (!getHeaders().isEmpty()) {
sb.append(", headers: ").append(getHeaders());
}
if (sb.length() == 0) {
sb.append("Not yet initialized");
}
return sb.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,10 @@ protected ClientHttpResponse executeInternal() throws IOException {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.httpMethod);
sb.append(' ').append(this.uri);
sb.append(this.httpMethod).append(' ').append(this.uri);
if (!getHeaders().isEmpty()) {
sb.append(", headers: ").append(getHeaders());
}
if (sb.length() == 0) {
sb.append("Not yet initialized");
}
return sb.toString();
}

Expand Down

0 comments on commit 0f2157d

Please sign in to comment.