Skip to content

Commit

Permalink
Allow resetting RecurringCronExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenroejl committed Dec 20, 2024
1 parent c00f32e commit 7e67326
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public string RecurringCronExpression
{
if (value != _recurringCronExpression)
{
if (CrontabSchedule.TryParse(value) == null)
if (value != string.Empty && CrontabSchedule.TryParse(value) == null)
throw new ArgumentOutOfRangeException($"Invalid cron value '{value}'. See https://github.com/atifaziz/NCrontab/wiki/Crontab-Expression for expected format.");

_recurringCronExpression = value;
Expand Down

0 comments on commit 7e67326

Please sign in to comment.