Skip to content

Commit 44465aa

Browse files
mw::com: drop has_value() guards on method enabled_ in proxy and factory
1 parent 1b871a6 commit 44465aa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

score/mw/com/impl/plumbing/proxy_method_binding_factory_impl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ Result<std::unique_ptr<ProxyMethodBinding>> ProxyMethodBindingFactoryImpl<Return
126126
const auto method_it = lola_service_instance_deployment.methods_.find(method_name_str);
127127
SCORE_LANGUAGE_FUTURECPP_ASSERT_PRD_MESSAGE(method_it != lola_service_instance_deployment.methods_.end(),
128128
"Could not find method deployment information for method");
129-
SCORE_LANGUAGE_FUTURECPP_ASSERT_PRD_MESSAGE(method_it->second.enabled_.has_value(),
130-
"Enabled flag must be set on proxy side for method!");
131-
if (!method_it->second.enabled_.value())
129+
if (!method_it->second.enabled_)
132130
{
133131
score::mw::log::LogDebug("lola")
134132
<< "Proxy Method " << method_name_str

0 commit comments

Comments
 (0)