Simplify logic
Simplify logic

Summary:
Changelog:
[Internal] - Simplify logic by not creating an unnecessary object

Reviewed By: kacieb

Differential Revision: D27371155

fbshipit-source-id: c34db151f57f9f6e46cc1984a5a9ef24f81adecd

janicduplessis/react-native,pandiaraj44/react-native,javache/react-native,facebook/react-native,pandiaraj44/react-native,janicduplessis/react-native,facebook/react-native,pandiaraj44/react-native,facebook/react-native,myntra/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,myntra/react-native,javache/react-native,arthuralee/react-native,pandiaraj44/react-native,javache/react-native,myntra/react-native,arthuralee/react-native,javache/react-native,arthuralee/react-native,javache/react-native,javache/react-native,arthuralee/react-native,myntra/react-native,myntra/react-native,javache/react-native,myntra/react-native,facebook/react-native,facebook/react-native,myntra/react-native,javache/react-native,myntra/react-native,javache/react-native,pandiaraj44/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,facebook/react-native,pandiaraj44/react-native,arthuralee/react-native,janicduplessis/react-native,janicduplessis/react-native,pandiaraj44/react-native,myntra/react-native,pandiaraj44/react-native,janicduplessis/react-native