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:
@@ -1487,8 +1487,6 @@ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn,
|
|||||||
if(imapcode != 'O')
|
if(imapcode != 'O')
|
||||||
result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */
|
result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */
|
||||||
else
|
else
|
||||||
result = CURLE_OK;
|
|
||||||
|
|
||||||
/* End of DONE phase */
|
/* End of DONE phase */
|
||||||
state(conn, IMAP_STOP);
|
state(conn, IMAP_STOP);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user