mirror of
https://github.com/curl/curl.git
synced 2026-07-23 13:57:19 +03:00
build: fix Codacy warnings
Reduce variable scopes and remove redundant variable stores. Closes https://github.com/curl/curl/pull/3975
This commit is contained in:
parent
04ac54e196
commit
e23c52b329
23 changed files with 80 additions and 123 deletions
|
|
@ -1968,11 +1968,10 @@ static CURLcode myssh_multi_statemach(struct connectdata *conn,
|
|||
bool *done)
|
||||
{
|
||||
struct ssh_conn *sshc = &conn->proto.sshc;
|
||||
CURLcode result = CURLE_OK;
|
||||
bool block; /* we store the status and use that to provide a ssh_getsock()
|
||||
implementation */
|
||||
CURLcode result = myssh_statemach_act(conn, &block);
|
||||
|
||||
result = myssh_statemach_act(conn, &block);
|
||||
*done = (sshc->state == SSH_STOP) ? TRUE : FALSE;
|
||||
myssh_block2waitfor(conn, block);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue