diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-08 23:02:20 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-08 23:02:20 +0000 |
commit | e5bb4e86ac35b84b87bf6e085859053db9136245 (patch) | |
tree | e7c6c0dd5d818b401ff737b832fbf70e840a89ad /lib/imap.c | |
parent | 6d8d3069050cc1d1cfcf323f7571fe78f59ebb45 (diff) |
email: Simplified nesting of if statements in *_doing() functions
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/imap.c b/lib/imap.c index ae5ec86c2..136d64379 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -2194,12 +2194,10 @@ static CURLcode imap_doing(struct connectdata *conn, bool *dophase_done) if(result) DEBUGF(infof(conn->data, "DO phase failed\n")); - else { - if(*dophase_done) { - result = imap_dophase_done(conn, FALSE /* not connected */); + else if(*dophase_done) { + 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; |