mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix CQS signal readability-container-size-empty in xplat/js/react-native-github/packages
Reviewed By: rshest Differential Revision: D79797826
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9831b03860
commit
dd2580213d
+1
-1
@@ -571,7 +571,7 @@ const CGFloat BACKGROUND_COLOR_ZPOSITION = -1024.0f;
|
||||
_backgroundColorLayer.frame = CGRectMake(0, 0, self.layer.bounds.size.width, self.layer.bounds.size.height);
|
||||
}
|
||||
|
||||
if ((_props->transformOrigin.isSet() || _props->transform.operations.size() > 0) &&
|
||||
if ((_props->transformOrigin.isSet() || !_props->transform.operations.empty()) &&
|
||||
layoutMetrics.frame.size != oldLayoutMetrics.frame.size) {
|
||||
auto newTransform = _props->resolveTransform(layoutMetrics);
|
||||
self.layer.transform = RCTCATransform3DFromTransformMatrix(newTransform);
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ std::vector<const RCTMethodInfo *> getMethodInfos(Class moduleClass)
|
||||
NSString *getJSMethodName(const RCTMethodInfo *methodInfo)
|
||||
{
|
||||
std::string jsName = methodInfo->jsName;
|
||||
if (jsName != "") {
|
||||
if (!jsName.empty()) {
|
||||
return @(jsName.c_str());
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ static inline void handleShouldFirstComeBeforeSecondRemovesOnly(
|
||||
}
|
||||
}
|
||||
|
||||
if (removeMutationsByTag.size() == 0) {
|
||||
if (removeMutationsByTag.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user