Skip to content

Commit

Permalink
NIT remove unnecessary cast in measure
Browse files Browse the repository at this point in the history
Summary: Trivial clean up of unnecessary cast in measure methods

Reviewed By: shergin

Differential Revision: D13108542

fbshipit-source-id: 93661f2f5322a790f2d578e6897b89cd1e205c3d
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 17, 2018
1 parent dcf72ff commit 2dbe769
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Size TextLayoutManager::measure(
indices.resize(values->size());
values->getRegion(0, values->size(), indices.data());

return {(float)indices[0], (float)indices[1]};
return {indices[0], indices[1]};
}

} // namespace react
Expand Down

0 comments on commit 2dbe769

Please sign in to comment.