Skip to content

Commit

Permalink
Fix bug where handleResponse() is called twice (#318)
Browse files Browse the repository at this point in the history
You'll probably want better tests here....
  • Loading branch information
tarjei committed Sep 9, 2020
1 parent acb9f20 commit 092d1e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/IntercomClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ public function nextSearchPage(string $path, array $query, $pages)
"starting_after" => $pages->next->starting_after,
]
];
$response = $this->post($path, $options);
return $this->handleResponse($response);
return $this->post($path, $options);
}

/**
Expand Down

0 comments on commit 092d1e2

Please sign in to comment.