!1302 修改 etc/sandbox/appdata_sandbox_fixer.py 不规范代码

Merge pull request !1302 from 樊景乐/master
This commit is contained in:
openharmony_ci 2024-07-26 03:44:16 +00:00 committed by Gitee
commit 64f091ba98
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -170,13 +170,13 @@ def _merge_scope_common(origin, new):
#处理 app-base
app = new.get("app-base")
if app is not None and len(app) > 0:
if app is not None and len(app) > 0:
_merge_scope_app(origin.get("app-base"), app)
pass
#处理 app-resources
app = new.get("app-resources")
if app is not None and len(app) > 0:
if app is not None and len(app) > 0:
_merge_scope_app(origin.get("app-resources"), app)
pass
@ -238,7 +238,7 @@ def fix_sandbox_config_file(options):
#处理individual
individuals = data.get("individual")
if individuals is not None and len(individuals) > 0:
if individuals is not None and len(individuals) > 0:
_merge_scope_individual(origin_json.get("individual")[0], individuals[0])
pass