mirror of
https://github.com/openharmony/resourceschedule_memmgr.git
synced 2026-07-01 03:23:18 -04:00
!472 merge chymainline into master
代码告警问题整改:if statement should be inside braces Created-by: wahaha3421 Commit-by: wahaha3421 Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) https://gitcode.com/openharmony/resourceschedule_memmgr/issues/309 ### 二、建议测试周期和提测地址 ### 三、变更内容 * 3.1 关联PR列表 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:无 5. rake脚本: 无 * 3.4 其他技术优化内容(做了什么,变更了什么) - 修复了代码规范导致的告警问题 * 3.5 废弃通知(什么字段、方法弃用?) - 无 * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) - 无 ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论: ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试:不需要 性能测试:不需要 并发测试:不需要 其他: See merge request: openharmony/resourceschedule_memmgr!472
This commit is contained in:
@@ -307,8 +307,9 @@ void ParseParams(const std::vector<std::string> ¶ms,
|
||||
std::string tmpKey;
|
||||
std::vector<std::string> tmpValue;
|
||||
for (auto i = 0; i < params.size(); i++) {
|
||||
if (params[i].empty())
|
||||
if (params[i].empty()) {
|
||||
continue;
|
||||
}
|
||||
if (params[i][0] == '-') {
|
||||
if (!tmpKey.empty()) {
|
||||
keyValuesMapping[tmpKey] = tmpValue;
|
||||
|
||||
Reference in New Issue
Block a user