Fix unintentional fallthrough in keyword parsing (#48717)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48717

tsia

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D68246769

fbshipit-source-id: a5192880423cb00616981f4e1b24b7819062bc3b
This commit is contained in:
Nick Gerleman
2025-01-16 11:42:34 -08:00
committed by Facebook GitHub Bot
parent ddf68eb949
commit 2b925c8358
@@ -250,6 +250,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
if constexpr (detail::hasFixed<KeywordT>) {
return KeywordT::Fixed;
}
break;
case fnv1a("flex"):
if constexpr (detail::hasFlex<KeywordT>) {
return KeywordT::Flex;
@@ -399,6 +400,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
if constexpr (detail::hasStart<KeywordT>) {
return KeywordT::Start;
}
break;
case fnv1a("static"):
if constexpr (detail::hasStatic<KeywordT>) {
return KeywordT::Static;