tool_operate: split up single_transfer

Complexity reduced from 124 to 83

Remove whitelisting of this function from the complexity script.

Closes #17437
This commit is contained in:
Daniel Stenberg 2025-05-24 00:30:22 +02:00
parent 65e4444d67
commit ed07f59841
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 299 additions and 257 deletions

View file

@ -75,8 +75,7 @@ my @output=`$cmd`;
# these functions can have these scores, but not higher
my %whitelist = (
'getparameter' => 142,
'single_transfer' => 124
'getparameter' => 142
);
# functions with complexity above this level causes the function to return error