From 06fe4ca7be6dc0f34576b1e407067e33ff20b4b9 Mon Sep 17 00:00:00 2001 From: Xie Han <63350856@qq.com> Date: Fri, 10 Feb 2023 17:28:15 +0800 Subject: [PATCH] Unify codes --- src/factory/HttpTaskImpl.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/factory/HttpTaskImpl.cc b/src/factory/HttpTaskImpl.cc index 50967037..31948b97 100644 --- a/src/factory/HttpTaskImpl.cc +++ b/src/factory/HttpTaskImpl.cc @@ -550,10 +550,7 @@ CommMessageIn *ComplexHttpProxyTask::message_in() return get_ssl_handshaker(); auto *msg = (ProtocolMessage *)this->ComplexHttpTask::message_in(); - if (is_ssl_) - return get_ssl_wrapper(msg); - - return msg; + return is_ssl_ ? get_ssl_wrapper(msg) : msg; } int ComplexHttpProxyTask::keep_alive_timeout()