mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
delete an unnecessary "if"
This commit is contained in:
parent
bd43e5cde3
commit
97695f6afb
1 changed files with 1 additions and 2 deletions
|
@ -366,8 +366,7 @@ def app_info(app, show_status=False, raw=False):
|
||||||
with open(os.path.join(APPS_SETTING_PATH, app, 'manifest.json')) as json_manifest:
|
with open(os.path.join(APPS_SETTING_PATH, app, 'manifest.json')) as json_manifest:
|
||||||
manifest = json.load(json_manifest)
|
manifest = json.load(json_manifest)
|
||||||
|
|
||||||
if 'version' in manifest:
|
ret['version'] = manifest.get('version', '-')
|
||||||
ret['version'] = manifest.get('version', '-')
|
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue