mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:43:32 +03:00
tidy-up: move literals to right-side of if expressions (where missing)
Closes #20535
This commit is contained in:
parent
c6ac2de5b3
commit
85de995208
57 changed files with 115 additions and 115 deletions
|
|
@ -42,12 +42,12 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
|
||||
result = curl_easy_perform(curl);
|
||||
|
||||
if(CURLE_OK == result) {
|
||||
if(result == CURLE_OK) {
|
||||
const char *ct;
|
||||
/* ask for the content-type */
|
||||
result = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
|
||||
|
||||
if((CURLE_OK == result) && ct)
|
||||
if((result == CURLE_OK) && ct)
|
||||
printf("We received Content-Type: %s\n", ct);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue