1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

email: Simplified nesting of if statements in *_doing() functions

This commit is contained in:
Steve Holme 2013-03-08 23:02:20 +00:00
parent 6d8d306905
commit e5bb4e86ac
3 changed files with 9 additions and 15 deletions

View File

@ -2194,13 +2194,11 @@ static CURLcode imap_doing(struct connectdata *conn, bool *dophase_done)
if(result)
DEBUGF(infof(conn->data, "DO phase failed\n"));
else {
if(*dophase_done) {
else if(*dophase_done) {
result = imap_dophase_done(conn, FALSE /* not connected */);
DEBUGF(infof(conn->data, "DO phase is complete\n"));
}
}
return result;
}

View File

@ -1566,13 +1566,11 @@ static CURLcode pop3_doing(struct connectdata *conn, bool *dophase_done)
if(result)
DEBUGF(infof(conn->data, "DO phase failed\n"));
else {
if(*dophase_done) {
else if(*dophase_done) {
result = pop3_dophase_done(conn, FALSE /* not connected */);
DEBUGF(infof(conn->data, "DO phase is complete\n"));
}
}
return result;
}

View File

@ -1565,13 +1565,11 @@ static CURLcode smtp_doing(struct connectdata *conn, bool *dophase_done)
if(result)
DEBUGF(infof(conn->data, "DO phase failed\n"));
else {
if(*dophase_done) {
else if(*dophase_done) {
result = smtp_dophase_done(conn, FALSE /* not connected */);
DEBUGF(infof(conn->data, "DO phase is complete\n"));
}
}
return result;
}