[mod] compress code a bit

This commit is contained in:
Laurent Peuch 2018-06-22 04:54:56 +02:00
parent 26f2741a7e
commit 64fe357995

View file

@ -1376,13 +1376,8 @@ def app_action_list(app_id):
actions = os.path.join(APPS_SETTING_PATH, app_id, 'actions.json') actions = os.path.join(APPS_SETTING_PATH, app_id, 'actions.json')
if not os.path.exists(actions):
return { return {
"actions": [], "actions": read_json(actions) if os.path.exists(actions) else [],
}
return {
"actions": read_json(actions),
} }