1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -220,8 +220,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
info->is_float = 1; // we can't use variable decimals here
return 1;
}
else
return 0;
return 0;
}
for (str++; *(end - 1) == '0'; end--); // jump over zeros at the end
if (str == end) // number was something like '123.000'
@ -236,11 +235,8 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
info->dval = atod(begin);
return 1;
}
else
return 0;
}
else
return 0;
return 0;
}