Skip to content

Commit dd25802

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal readability-container-size-empty in xplat/js/react-native-github/packages
Reviewed By: rshest Differential Revision: D79797826
1 parent 9831b03 commit dd25802

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ - (void)updateLayoutMetrics:(const LayoutMetrics &)layoutMetrics
571571
_backgroundColorLayer.frame = CGRectMake(0, 0, self.layer.bounds.size.width, self.layer.bounds.size.height);
572572
}
573573

574-
if ((_props->transformOrigin.isSet() || _props->transform.operations.size() > 0) &&
574+
if ((_props->transformOrigin.isSet() || !_props->transform.operations.empty()) &&
575575
layoutMetrics.frame.size != oldLayoutMetrics.frame.size) {
576576
auto newTransform = _props->resolveTransform(layoutMetrics);
577577
self.layer.transform = RCTCATransform3DFromTransformMatrix(newTransform);

packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
NSString *getJSMethodName(const RCTMethodInfo *methodInfo)
7676
{
7777
std::string jsName = methodInfo->jsName;
78-
if (jsName != "") {
78+
if (!jsName.empty()) {
7979
return @(jsName.c_str());
8080
}
8181

packages/react-native/ReactCommon/react/renderer/animations/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static inline void handleShouldFirstComeBeforeSecondRemovesOnly(
3737
}
3838
}
3939

40-
if (removeMutationsByTag.size() == 0) {
40+
if (removeMutationsByTag.empty()) {
4141
return;
4242
}
4343

0 commit comments

Comments
 (0)