mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 02:26:18 +08:00
Don't use default in exhaustive switch
Summary: @public removes the `default` case from an already exhaustive switch. Reviewed By: SidharthGuglani Differential Revision: D13451869 fbshipit-source-id: 32727330c7fce013963f5c83c95a73b230d5c938
This commit is contained in:
committed by
Facebook Github Bot
parent
a816c0321c
commit
d0485b2f04
@@ -44,7 +44,6 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) {
|
||||
return true;
|
||||
case YGUnitPoint:
|
||||
case YGUnitPercent:
|
||||
default:
|
||||
return lhs.value == rhs.value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user