Skip to content

Commit d97c664

Browse files
shubh73claude
andcommitted
Apply clang-format
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2e2e5f1 commit d97c664

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/react-native/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,8 @@ TEST_F(ShadowNodeTest, cloneTree) {
466466

467467
TEST_F(ShadowNodeTest, cloneTreeReturnsNullptrWhenFamilyHasNoPathToRoot) {
468468
auto result = nodeA_->cloneTree(
469-
nodeZ_->getFamily(), [&](const ShadowNode& oldShadowNode) {
470-
return oldShadowNode.clone({});
471-
});
469+
nodeZ_->getFamily(),
470+
[&](const ShadowNode& oldShadowNode) { return oldShadowNode.clone({}); });
472471

473472
EXPECT_EQ(result, nullptr);
474473
}

‎packages/react-native/ReactCommon/react/renderer/uimanager/UIManagerUpdateShadowTree.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ void UIManager::updateShadowTree(
201201
auto cloned = oldShadowNode->clone(
202202
{.props = newProps,
203203
.children = std::make_shared<
204-
std::vector<std::shared_ptr<const ShadowNode>>>(std::move(children))});
204+
std::vector<std::shared_ptr<const ShadowNode>>>(
205+
std::move(children))});
205206
clonedShadowNodes.insert({oldShadowNode->getTag(), std::move(cloned)});
206207
} else {
207208
LOG(ERROR) << "oldShadowNode is null";

0 commit comments

Comments
 (0)