mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Libraries: Fix -Wunreachable-code warnings from clang
This commit is contained in:
parent
96666f3209
commit
b8dc3661ac
10 changed files with 7 additions and 27 deletions
|
@ -1881,10 +1881,8 @@ Optional<float> Parser::try_parse_float(StringView string)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (str[i] < '0' || str[i] > '9' || exp_val != 0) {
|
||||
if (str[i] < '0' || str[i] > '9' || exp_val != 0)
|
||||
return {};
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_fractional) {
|
||||
fraction *= 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue