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

View File

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

View File

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