Skip to content

Commit cb7fd1e

Browse files
committed
Fixes code styling
1 parent fbdf5bd commit cb7fd1e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/transports/ssh.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,6 @@ static int _git_ssh_setup_conn(
518518
{
519519
git_net_url urldata = GIT_NET_URL_INIT;
520520
int auth_methods, error = 0;
521-
int sub_error;
522521
size_t i;
523522
ssh_stream *s;
524523
git_cred *cred = NULL;
@@ -642,11 +641,10 @@ static int _git_ssh_setup_conn(
642641

643642
if (error == GIT_EAUTH) {
644643
/* refresh auth methods */
645-
sub_error = list_auth_methods(&auth_methods, session, urldata.username);
646-
if (sub_error < 0) {
647-
error = sub_error;
644+
if ((error = list_auth_methods(&auth_methods, session, urldata.username)) < 0)
648645
goto done;
649-
}
646+
else
647+
error = GIT_EAUTH;
650648
}
651649
}
652650

0 commit comments

Comments
 (0)