mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:43:34 +03:00
Improve code readbility
... by removing the else branch after a return, break or continue. Closes #1310
This commit is contained in:
parent
db87bcfcf2
commit
66de563482
37 changed files with 405 additions and 496 deletions
|
|
@ -267,8 +267,8 @@ long Curl_pgrsLimitWaitTime(curl_off_t cursize,
|
|||
if(actual < minimum)
|
||||
/* this is a conversion on some systems (64bit time_t => 32bit long) */
|
||||
return (long)(minimum - actual);
|
||||
else
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size)
|
||||
|
|
@ -454,7 +454,7 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
failf(data, "Callback aborted");
|
||||
return result;
|
||||
}
|
||||
else if(data->set.fprogress) {
|
||||
if(data->set.fprogress) {
|
||||
/* The older deprecated callback is set, call that */
|
||||
result= data->set.fprogress(data->set.progress_client,
|
||||
(double)data->progress.size_dl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue