Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz03 committed Nov 22, 2023
1 parent b677204 commit 506e99d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ public Class<T> getResponseType() {
* @return Parsed response class
*/
public T parseResponse(String json) throws JsonProcessingException {
T response = mapper.readValue(json, responseType);
response.setJson(json);

return response;
return mapper.readValue(json, responseType);
}

protected Map<String, Object> getHeaders(InstagramClient client) {
Expand Down

0 comments on commit 506e99d

Please sign in to comment.