Fabric: Fixing small nit in ParagraphComponentDescriptor

Summary: Trivial. `measureCache_` is unique pointer here. It cannot be `nullptr`.

Reviewed By: JoshuaGross

Differential Revision: D17200950

fbshipit-source-id: dc267eb6545a10322cc2f02690f90c6a50366f0e
This commit is contained in:
Valentin Shergin
2019-09-05 08:06:09 -07:00
committed by Facebook Github Bot
parent 50c318fb04
commit 862bd2fa2a
@@ -52,8 +52,7 @@ class ParagraphComponentDescriptor final
// `ParagraphShadowNode` uses this to cache the results of text rendering
// measurements.
paragraphShadowNode->setMeasureCache(
measureCache_ ? measureCache_.get() : nullptr);
paragraphShadowNode->setMeasureCache(measureCache_.get());
paragraphShadowNode->dirtyLayout();