Commit 37f3fcd6 authored by Steve Holme's avatar Steve Holme
Browse files

imap: Tidied up the final FETCH response function

Removed unnecessary state change on failure and setting of result code on
success.
parent c9f9f601
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1487,8 +1487,6 @@ 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);