From a26d921c0cc579cb7f1b7796a19605d3a0caa9de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sun, 10 Apr 2016 16:50:39 +0200 Subject: [PATCH] [fix] Formatting 'args' in hook_callback is useless --- src/yunohost/hook.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/yunohost/hook.py b/src/yunohost/hook.py index c90a74ca2..00e06d365 100644 --- a/src/yunohost/hook.py +++ b/src/yunohost/hook.py @@ -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