← Commit list

66a66c596b

Daniel Stenberg
Daniel Stenberg
2025-11-06
SUCCESS Duration: 143s

Subject

tool_operate: remove redundant condition

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_operate.c+8 -9
@@ -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;