Merge pull request #202 from gonimar/patch-1

Unused local variable 'json_data'.
This commit is contained in:
Tony Tam 2014-06-11 06:12:36 -07:00
commit 7d05b01a56

View File

@ -85,7 +85,6 @@ class APIClient {
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
} else if ($method == self::$PUT) {
$json_data = json_encode($postData);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
} else if ($method == self::$DELETE) {