!671 删除不必要的return

Merge pull request !671 from wzhhhh/master
This commit is contained in:
openharmony_ci 2024-09-19 07:02:10 +00:00 committed by Gitee
commit 1632eb3dd7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -301,8 +301,7 @@ int32_t ProfileControlUtils::GetCharacteristicProfile(std::shared_ptr<IKVAdapter
std::string profileKeyPrefix = ProfileUtils::GenerateCharProfileKey(deviceId,
ProfileUtils::CheckAndAddOhSuffix(serviceName, true), characteristicKey);
if (kvStore->GetByPrefix(profileKeyPrefix, values) != DP_SUCCESS) {
HILOGE("Get data fail!");
return DP_GET_KV_DB_FAIL;
HILOGE("Get data by oh suffix fail!");
}
}
if (values.empty()) {