From 1f3de79f808f1dfdab78706c8425c5e8c1062479 Mon Sep 17 00:00:00 2001 From: Gymee Date: Thu, 16 Sep 2021 09:31:16 +0800 Subject: [PATCH] fix codex warnings Signed-off-by: Gymee Change-Id: I59a83bec43940bde10146b494a4df1fd69522ace --- services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp b/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp index d751563a..22bacf81 100755 --- a/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp +++ b/services/dtbschedmgr/src/adapter/dnetwork_adapter.cpp @@ -59,12 +59,12 @@ void DnetworkAdapter::Init() void DnetworkAdapter::OnNodeOnline(NodeBasicInfo* info) { - HILOGI("OnNodeOnline netwokId = %{public}s", AnonymizeDeviceId(info->networkId).c_str()); if (info == nullptr) { HILOGE("OnNodeOnline invalid parameter"); return; } + HILOGI("OnNodeOnline netwokId = %{public}s", AnonymizeDeviceId(info->networkId).c_str()); auto onlineNotifyTask = [info = *info]() { std::lock_guard autoLock(listenerSetMutex_); for (auto& listener : listenerSet_) { @@ -79,12 +79,12 @@ void DnetworkAdapter::OnNodeOnline(NodeBasicInfo* info) void DnetworkAdapter::OnNodeOffline(NodeBasicInfo* info) { - HILOGI("OnNodeOffline networkId = %{public}s", AnonymizeDeviceId(info->networkId).c_str()); if (info == nullptr) { HILOGE("OnNodeOffline invalid parameter"); return; } + HILOGI("OnNodeOffline networkId = %{public}s", AnonymizeDeviceId(info->networkId).c_str()); auto offlineNotifyTask = [info = *info]() { std::lock_guard autoLock(listenerSetMutex_); for (auto& listener : listenerSet_) { @@ -206,4 +206,4 @@ std::string DnetworkAdapter::AnonymizeDeviceId(const std::string& deviceId) return anonDeviceId; } } // namespace DistributedSchedule -} // namespace OHOS \ No newline at end of file +} // namespace OHOS