mirror of
https://gitee.com/openharmony/security_code_signature
synced 2024-11-23 06:10:10 +00:00
cpp check
Signed-off-by: fundavid <fangjiawei8@huawei.com>
This commit is contained in:
parent
04abb7cac0
commit
b20cb2c00a
@ -107,7 +107,7 @@ int32_t CodeSignEnableMultiTask::ExecuteEnableCodeSignTask(const std::string &ow
|
||||
return taskRet;
|
||||
}
|
||||
int32_t ret = CS_SUCCESS;
|
||||
for (auto &data : enableData_) {
|
||||
for (const auto &data : enableData_) {
|
||||
const std::string &filePath = data.first;
|
||||
if (IsFsVerityEnabled(filePath) != CS_SUCCESS) {
|
||||
ret = CS_ERR_FSVERITY_NOT_ENABLED;
|
||||
|
@ -35,7 +35,6 @@ int32_t CodeSignHelper::ProcessMultiTask(const std::string &ownerId, const std::
|
||||
do {
|
||||
ret = ProcessOneFile();
|
||||
if (ret == CS_SUCCESS_END) {
|
||||
ret = CS_SUCCESS;
|
||||
break;
|
||||
} else if (ret != CS_SUCCESS) {
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user