imap: Tidied up the final FETCH response function

Removed unnecessary state change on failure and setting of result code on
success.
This commit is contained in:
Steve Holme 2013-03-06 20:19:46 +00:00
parent c9f9f601b8
commit 37f3fcd631
1 changed files with 2 additions and 4 deletions

View File

@ -1487,10 +1487,8 @@ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn,
if(imapcode != 'O')
result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */
else
result = CURLE_OK;
/* End of DONE phase */
state(conn, IMAP_STOP);
/* End of DONE phase */
state(conn, IMAP_STOP);
return result;
}