From 5cde3d0235da316ffb6756eca75880212f6a4480 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 1 May 2022 14:51:52 +0200 Subject: [PATCH] fix(cli): allow empty schedule to clear it --- src/git/cli.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/cli.v b/src/git/cli.v index 3a1f2e3a..0eff55f0 100644 --- a/src/git/cli.v +++ b/src/git/cli.v @@ -166,7 +166,7 @@ fn remove(conf Config, id_prefix string) ? { fn patch(conf Config, id_prefix string, params map[string]string) ? { // We check the cron expression first because it's useless to send an // invalid one to the server. - if 'schedule' in params { + if 'schedule' in params && params['schedule'] != '' { parse_expression(params['schedule']) or { return error('Invalid cron expression: $err.msg()') }