mirror of
https://github.com/curl/curl.git
synced 2026-05-30 10:17:28 +03:00
tool_operate: remove redundant condition
And avoid an early return. Pointed out by CodeSonar Closes #19381
This commit is contained in:
parent
56129718b8
commit
66a66c596b
1 changed files with 8 additions and 9 deletions
|
|
@ -2116,22 +2116,21 @@ static CURLcode transfer_per_config(struct OperationConfig *config,
|
|||
bool *added,
|
||||
bool *skipped)
|
||||
{
|
||||
CURLcode result = CURLE_OK;
|
||||
CURLcode result;
|
||||
*added = FALSE;
|
||||
|
||||
/* Check we have a url */
|
||||
if(!config->url_list || !config->url_list->url) {
|
||||
helpf("(%d) no URL specified", CURLE_FAILED_INIT);
|
||||
return CURLE_FAILED_INIT;
|
||||
result = CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
if(!result)
|
||||
else {
|
||||
result = cacertpaths(config);
|
||||
|
||||
if(!result) {
|
||||
result = single_transfer(config, share, added, skipped);
|
||||
if(!*added || result)
|
||||
single_transfer_cleanup();
|
||||
if(!result) {
|
||||
result = single_transfer(config, share, added, skipped);
|
||||
if(!*added || result)
|
||||
single_transfer_cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue