Fix exhaustive switches

Summary: Changelog: [General][Fixed] - Add `default:` case to avoid warnings/errors for targets that compile with `-Wswitch-enum` and `-Wswitch-default` enabled

Reviewed By: aary

Differential Revision: D77051152
This commit is contained in:
Nolan O'Brien
2025-07-02 12:00:00 -07:00
committed by Facebook GitHub Bot
parent 4b5ca50117
commit 33b71a71f1

View File

@@ -72,9 +72,9 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) {
case YGUnitPoint:
case YGUnitPercent:
return lhs.value == rhs.value;
default:
return false;
}
return false;
}
inline bool operator!=(const YGValue& lhs, const YGValue& rhs) {