From 14da42ee7b888a4e83e7d9c62969e127674aeb36 Mon Sep 17 00:00:00 2001 From: hui1975 Date: Mon, 24 Apr 2023 11:36:16 +0000 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hui1975 Change-Id: I3c45a731db0fe990ae752f0bdfde93d0e210b180 --- services/sensor/src/client_info.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/sensor/src/client_info.cpp b/services/sensor/src/client_info.cpp index 495848bc..e1078871 100644 --- a/services/sensor/src/client_info.cpp +++ b/services/sensor/src/client_info.cpp @@ -750,8 +750,7 @@ int32_t ClientInfo::GetPidByTokenId(AccessTokenID tokenId) auto iter = std::find_if(appThreadInfoMap_.begin(), appThreadInfoMap_.end(), [tokenId] (auto appThreadInfo) { return appThreadInfo.second.callerToken == tokenId; - } - ); + }); if (iter != appThreadInfoMap_.end()) { pid = iter->second.pid; } -- Gitee