mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Formatting 'args' in hook_callback is useless
This commit is contained in:
parent
cf077a50aa
commit
a26d921c0c
1 changed files with 0 additions and 6 deletions
|
@ -260,12 +260,6 @@ def hook_callback(action, hooks=[], args=None, no_trace=False, chdir=None,
|
|||
if not hooks_dict:
|
||||
return result
|
||||
|
||||
# Format arguments
|
||||
if args is None:
|
||||
args = []
|
||||
elif not isinstance(args, list):
|
||||
args = [args]
|
||||
|
||||
# Validate callbacks
|
||||
if not callable(pre_callback):
|
||||
pre_callback = lambda name, priority, path, args: args
|
||||
|
|
Loading…
Add table
Reference in a new issue