Skip to content

Commit aa78980

Browse files
committed
Reformat with recent prettier pre-commit setup
Signed-off-by: Julien Jerphanion <[email protected]>
1 parent 267beae commit aa78980

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

libmamba/tests/src/solver/libsolv/test_solver.cpp

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,41 +63,43 @@ find_actions_with_name(const Solution& solution, std::string_view name)
6363
return out;
6464
}
6565

66-
auto find_actions(const Solution& solution) -> std::vector<Solution::Action>
66+
auto
67+
find_actions(const Solution& solution) -> std::vector<Solution::Action>
6768
{
6869
auto out = std::vector<Solution::Action>();
6970
for (const auto& action : solution.actions)
7071
{
7172
std::visit(
72-
[&](const auto& act)
73-
{
74-
using Act = std::decay_t<decltype(act)>;
75-
if constexpr (Solution::has_install_v<Act>)
73+
[&](const auto& act)
7674
{
77-
out.push_back(act);
78-
}
79-
},
80-
action
75+
using Act = std::decay_t<decltype(act)>;
76+
if constexpr (Solution::has_install_v<Act>)
77+
{
78+
out.push_back(act);
79+
}
80+
},
81+
action
8182
);
8283
}
8384
return out;
8485
}
8586

86-
auto extract_package_to_install(const Solution& solution) -> std::vector<specs::PackageInfo>
87+
auto
88+
extract_package_to_install(const Solution& solution) -> std::vector<specs::PackageInfo>
8789
{
8890
auto out = std::vector<specs::PackageInfo>();
8991
for (const auto& action : find_actions(solution))
9092
{
9193
std::visit(
92-
[&](const auto& act)
93-
{
94-
using Act = std::decay_t<decltype(act)>;
95-
if constexpr (Solution::has_install_v<Act>)
94+
[&](const auto& act)
9695
{
97-
out.push_back(act.install);
98-
}
99-
},
100-
action
96+
using Act = std::decay_t<decltype(act)>;
97+
if constexpr (Solution::has_install_v<Act>)
98+
{
99+
out.push_back(act.install);
100+
}
101+
},
102+
action
101103
);
102104
}
103105
return out;

0 commit comments

Comments
 (0)