Skip to content

Commit

Permalink
LibWeb: Fix inverted-if typo in flex_shrink_factor()
Browse files Browse the repository at this point in the history
I messed this up when I changed it before, which was causing a crash.
  • Loading branch information
AtkinsSJ authored and awesomekling committed Aug 20, 2021
1 parent 5d11637 commit 8f2ab52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Optional<float> StyleProperties::flex_shrink_factor() const
auto value = property(CSS::PropertyID::FlexShrink);
if (!value.has_value())
return {};
if (!value.value()->is_numeric()) {
if (value.value()->is_numeric()) {
auto numeric = verify_cast<CSS::NumericStyleValue>(value.value().ptr());
return numeric->value();
}
Expand Down

0 comments on commit 8f2ab52

Please sign in to comment.