Skip to content

Commit c65e82e

Browse files
authored
requested change on String respBody = response.... done
1 parent 4706b09 commit c65e82e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,7 @@ public <T> T invokeAPI(String path, String method, List<Pair> queryParams, Objec
766766
ClientResponse response = getAPIResponse(path, method, queryParams, body, headerParams, formParams, accept, contentType, authNames);
767767

768768
if (response.getStatusInfo().getFamily() != Family.SUCCESSFUL) {
769-
String respBody = null;
770-
respBody = response.getEntity(String.class);
769+
String respBody = response.getEntity(String.class);
771770
throw new ApiException(
772771
response.getStatusInfo().getStatusCode(),
773772
"Error while requesting server, received a non successful HTTP code " + response.getStatusInfo().getStatusCode() + " with response Body: '" + respBody + "'",

0 commit comments

Comments
 (0)