update services/core/src/utils/profile_cache.cpp.

Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
torrizo 2024-07-26 01:57:15 +00:00 committed by Gitee
parent b7aa5928b7
commit a67d10d059
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -590,7 +590,7 @@ int32_t ProfileCache::SetSwitchByProfile(const CharacteristicProfile& charProfil
bool ProfileCache::IsSwitchValid(const CharacteristicProfile& charProfile,
const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, const std::string& operate)
{
HILOGI("call!");
HILOGD("call!");
if (charProfile.GetCharacteristicKey() != SWITCH_STATUS || switchServiceMap.empty()) {
HILOGE("params invalid");
return false;