Daily `arc lint --take CLANGFORMAT`

Reviewed By: zertosh

Differential Revision: D20383094

fbshipit-source-id: 1dc497a98fd3b5962542735c5243d7ac9cd40da3
This commit is contained in:
generatedunixname89002005287564 2020-03-11 21:39:25 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 409c276474
Коммит 1dc82a89d7
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -1334,7 +1334,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithBundleURL
[[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptWillStartExecutingNotification
object:self->_parentBridge
userInfo:@{@"bridge" : self}];
// hold a local reference to reactInstance in case a parallel thread
// resets it between null check and usage
auto reactInstance = self->_reactInstance;
@ -1350,8 +1350,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithBundleURL
reactInstance->loadRAMBundle(std::move(registry), std::move(scriptStr), sourceUrlStr.UTF8String, !async);
}
} else if (reactInstance) {
reactInstance->loadScriptFromString(
std::make_unique<NSDataBigString>(script), sourceUrlStr.UTF8String, !async);
reactInstance->loadScriptFromString(std::make_unique<NSDataBigString>(script), sourceUrlStr.UTF8String, !async);
} else {
std::string methodName = async ? "loadApplicationScript" : "loadApplicationScriptSync";
throw std::logic_error("Attempt to call " + methodName + ": on uninitialized bridge");

Просмотреть файл

@ -59,8 +59,7 @@ struct LayoutMetrics {
* The value is comparable by equality with any other `LayoutMetrics` value.
*/
static LayoutMetrics const EmptyLayoutMetrics = {
/* .frame = */ {{0, 0}, {-1.0, -1.0}}
};
/* .frame = */ {{0, 0}, {-1.0, -1.0}}};
} // namespace react
} // namespace facebook