mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
nullptr -> folly::none in fbobjc/xplat
Summary: In preparation for D12843022, starting using folly::none instead of nullptr to indicate an empty optional. Reviewed By: nlutsenko Differential Revision: D13052075 fbshipit-source-id: ed869f98b5fb1556bca1e01e3ac3e44ea914dc52
This commit is contained in:
committed by
Facebook Github Bot
parent
83405ff316
commit
56a416e3be
@@ -65,7 +65,7 @@ folly::Optional<Object> JSINativeModules::createModule(
|
||||
|
||||
auto result = m_moduleRegistry->getConfig(name);
|
||||
if (!result.hasValue()) {
|
||||
return nullptr;
|
||||
return folly::none;
|
||||
}
|
||||
|
||||
Value moduleInfo = m_genNativeModuleJS->call(
|
||||
|
||||
Reference in New Issue
Block a user