remove comparison in WFServiceGorvernance::copy_host_port()

This commit is contained in:
holmes1412
2022-03-03 15:09:27 +08:00
parent 5eaff9170e
commit 7a323223fe
+2 -2
View File
@@ -67,13 +67,13 @@ public:
static void copy_host_port(ParsedURI& uri, const EndpointAddress *addr)
{
if (!addr->host.empty() && addr->host != uri.host)
if (!addr->host.empty())
{
free(uri.host);
uri.host = strdup(addr->host.c_str());
}
if (!addr->port.empty() && addr->port != uri.port)
if (!addr->port.empty())
{
free(uri.port);
uri.port = strdup(addr->port.c_str());