Skip to content

Commit

Permalink
fix: [pre-commit.ci] auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2023
1 parent 6df3cb6 commit 572388b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treespec/treespec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ py::object PyTreeSpec::GetType(const std::optional<Node>& node) const {
if (!node.has_value()) [[likely]] {
EXPECT_FALSE(m_traversal.empty(), "The tree node traversal is empty.");
}
const Node &n = node.value_or(m_traversal.back());
const Node& n = node.value_or(m_traversal.back());
switch (n.kind) {
case PyTreeKind::Custom:
EXPECT_NE(n.custom, nullptr, "The custom registration is null.");
Expand Down

0 comments on commit 572388b

Please sign in to comment.