Commit e7ab471e authored by Dominik Charousset's avatar Dominik Charousset

Remove unnecessary local references

parent c2118c72
...@@ -312,13 +312,9 @@ public: ...@@ -312,13 +312,9 @@ public:
template <class... Ts> template <class... Ts>
typename detail::make_response_promise_helper<Ts...>::type typename detail::make_response_promise_helper<Ts...>::type
make_response_promise() { make_response_promise() {
auto& ptr = current_element_; if (current_element_ == nullptr || current_element_->mid.is_answered())
if (!ptr)
return {}; return {};
auto& mid = ptr->mid; return {this->ctrl(), *current_element_};
if (mid.is_answered())
return {};
return {this->ctrl(), *ptr};
} }
/// Creates a `response_promise` to respond to a request later on. /// Creates a `response_promise` to respond to a request later on.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment