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:41:04 -07:00
committed by Facebook GitHub Bot
parent 409c276474
commit 1dc82a89d7
2 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -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