检视意见修改

Signed-off-by: luyangyang <1049603119@qq.com>
This commit is contained in:
luyangyang 2024-07-01 20:28:21 +08:00
parent b5648cb7c4
commit 8ab124de61

View File

@ -174,7 +174,7 @@ OH_Rdb_Store *OH_Rdb_GetOrOpen(const OH_Rdb_Config *config, int *errCode)
} }
if (config->securityLevel < OH_Rdb_SecurityLevel::S1 || config->securityLevel > OH_Rdb_SecurityLevel::S4) { if (config->securityLevel < OH_Rdb_SecurityLevel::S1 || config->securityLevel > OH_Rdb_SecurityLevel::S4) {
LOG_ERROR("Parameters set error:config->securityLevel is valid, %{public}d", config->securityLevel); LOG_ERROR("Parameters set error:config->securityLevel is not valid, %{public}d", config->securityLevel);
*errCode = OH_Rdb_ErrCode::RDB_E_INVALID_ARGS; *errCode = OH_Rdb_ErrCode::RDB_E_INVALID_ARGS;
return nullptr; return nullptr;
} }