1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

cleanup: if there is return from if-part, we don't need else statement

This commit is contained in:
konstantin@mysql.com
2003-12-10 22:26:31 +03:00
parent ea81fd27bb
commit 124c4ca346
11 changed files with 36 additions and 56 deletions

View File

@ -848,7 +848,7 @@ int Field_decimal::cmp(const char *a_ptr,const char *b_ptr)
return 0;
if (*a_ptr == '-')
return -1;
else if (*b_ptr == '-')
if (*b_ptr == '-')
return 1;
while (a_ptr != end)
@ -3018,7 +3018,7 @@ void Field_year::store(const char *from, uint len)
current_thd->cuted_fields++;
return;
}
else if (current_thd->count_cuted_fields && !test_if_int(from,len))
if (current_thd->count_cuted_fields && !test_if_int(from,len))
current_thd->cuted_fields++;
if (nr != 0 || len != 4)
{