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:
Chad Austin
2018-11-14 10:50:54 -08:00
committed by Facebook Github Bot
parent 83405ff316
commit 56a416e3be
2 changed files with 4 additions and 4 deletions

View File

@@ -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(