@@ -55,11 +55,9 @@ class AutoScalingWaiter {
5555 const auto & result = outcome.GetResult ();
5656 return std::any_of (
5757 result.GetAutoScalingGroups ().begin (), result.GetAutoScalingGroups ().end (), [](const Model::AutoScalingGroup& item) {
58- return !(static_cast <std::size_t >(
59- std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
60- return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) ==
61- " InService" );
62- })) >= item.GetMinSize ());
58+ return !(std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
59+ return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) == " InService" );
60+ }) >= item.GetMinSize ());
6361 }) == expected.get <bool >();
6462 }));
6563 acceptors.emplace_back (Aws::MakeUnique<Aws::Utils::PathAcceptor<OutcomeT>>(
@@ -69,11 +67,9 @@ class AutoScalingWaiter {
6967 const auto & result = outcome.GetResult ();
7068 return std::any_of (
7169 result.GetAutoScalingGroups ().begin (), result.GetAutoScalingGroups ().end (), [](const Model::AutoScalingGroup& item) {
72- return !(static_cast <std::size_t >(
73- std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
74- return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) ==
75- " InService" );
76- })) >= item.GetMinSize ());
70+ return !(std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
71+ return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) == " InService" );
72+ }) >= item.GetMinSize ());
7773 }) == expected.get <bool >();
7874 }));
7975
0 commit comments