diff options
author | Nico Weber <thakis@chromium.org> | 2021-10-08 08:34:12 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-08 23:33:46 +0200 |
commit | b8dc3661ac7573351c42275068abbe6bc2d4e6aa (patch) | |
tree | d129305c23e18dfd9b627c93a568ca2b2f205d41 /Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | |
parent | 96666f3209a27b5d6abd0653a8d6d0ceb47e3e92 (diff) | |
download | serenity-b8dc3661ac7573351c42275068abbe6bc2d4e6aa.zip |
Libraries: Fix -Wunreachable-code warnings from clang
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 3c5f8f5b3a..a20dc20391 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -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; |