- if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE,
- &ctx->res_code) != CURLE_OK
- || curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE,
- &ctx->content_type) != CURLE_OK) {
- return false;
- }
-
- return true;
+ return curl_easy_getinfo(curl,
+ CURLINFO_RESPONSE_CODE, &ctx->res_code) == CURLE_OK &&
+ curl_easy_getinfo(curl,
+ CURLINFO_CONTENT_TYPE, &ctx->content_type) == CURLE_OK;