From f672262950c3ec6a4209b825c21515d6f804702b Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 12 Apr 2022 11:32:45 +0200 Subject: [PATCH] Set default value for the arguments option: [] (#308) --- mod_cron/src/mod_cron.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod_cron/src/mod_cron.erl b/mod_cron/src/mod_cron.erl index b39a24d..cc4fb35 100644 --- a/mod_cron/src/mod_cron.erl +++ b/mod_cron/src/mod_cron.erl @@ -182,6 +182,8 @@ get_new_taskid() -> Id -> Id + 1 end. +parse_args_type(_, undefined) -> + []; parse_args_type(string, Args) -> lists:map(fun(Arg) when is_binary(Arg) -> binary_to_list(Arg); (Arg) -> Arg