cpp check

Signed-off-by: fundavid <fangjiawei8@huawei.com>
This commit is contained in:
fundavid 2024-10-15 13:45:17 +08:00
parent 04abb7cac0
commit b20cb2c00a
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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;