mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-22 23:19:50 +00:00
DP代码优化
Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
parent
9502f7be44
commit
5351d0b69a
@ -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 "";
|
||||
|
Loading…
Reference in New Issue
Block a user