DP代码优化

Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
torrizo 2024-11-07 12:06:08 +00:00 committed by Gitee
parent 9502f7be44
commit 5351d0b69a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -424,8 +424,7 @@ bool DpRadarHelper::ReportSyncDataCb(struct RadarInfo info)
std::string DpRadarHelper::GetHostNameByServiceId(std::string serviceId)
{
if (hostNameMap_.find(serviceId) != hostNameMap_.end())
{
if (hostNameMap_.find(serviceId) != hostNameMap_.end()) {
return hostNameMap_[serviceId];
}
return "";