email: Post optimisation of endofresp() tidy up
Removed unnecessary end of line check and return.
This commit is contained in:
Родитель
66aa9bf52d
Коммит
52281a10aa
|
@ -363,9 +363,6 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
|
|||
(*line == ' ' || *line == '\t' ||
|
||||
*line == '\r' || *line == '\n')) {
|
||||
|
||||
if(*line == '\n')
|
||||
return FALSE;
|
||||
|
||||
line++;
|
||||
len--;
|
||||
}
|
||||
|
|
|
@ -293,9 +293,6 @@ static bool pop3_endofresp(struct connectdata *conn, char *line, size_t len,
|
|||
(*line == ' ' || *line == '\t' ||
|
||||
*line == '\r' || *line == '\n')) {
|
||||
|
||||
if(*line == '\n')
|
||||
return FALSE;
|
||||
|
||||
line++;
|
||||
len--;
|
||||
}
|
||||
|
|
|
@ -254,9 +254,6 @@ static bool smtp_endofresp(struct connectdata *conn, char *line, size_t len,
|
|||
(*line == ' ' || *line == '\t' ||
|
||||
*line == '\r' || *line == '\n')) {
|
||||
|
||||
if(*line == '\n')
|
||||
return FALSE;
|
||||
|
||||
line++;
|
||||
len--;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче