mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-06 17:52:57 +08:00
Simplify ModuleConfig array format
Reviewed By: lexs, mhorowitz Differential Revision: D3901563 fbshipit-source-id: 70aea19db1b01170be57b74ccfa1a306dfa1f362
This commit is contained in:
committed by
Facebook Github Bot 8
parent
acdd08aef7
commit
ff79224d37
@@ -53,10 +53,7 @@ folly::dynamic ModuleRegistry::getConfig(const std::string& name) {
|
||||
|
||||
{
|
||||
SystraceSection s("getConstants");
|
||||
folly::dynamic constants = module->getConstants();
|
||||
if (constants.isObject() && constants.size() > 0) {
|
||||
config.push_back(std::move(constants));
|
||||
}
|
||||
config.push_back(module->getConstants());
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user