From 46e150c3cdac891ac032e29f8c57822eb888320e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Rovira?= Date: Sun, 28 May 2023 10:12:33 +0200 Subject: [PATCH] Make gofmt happy --- quartz/internal/csm/doc.go | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/quartz/internal/csm/doc.go b/quartz/internal/csm/doc.go index 9a73ba8..5f1e6ee 100644 --- a/quartz/internal/csm/doc.go +++ b/quartz/internal/csm/doc.go @@ -3,7 +3,7 @@ // instant that fits the expression? // // The method CronStateMachine.NextTriggerTime() (cron_state_machine.go) -// computes the answer. The current solution is not proven to be mathematically correct. +// computes the answer. The current solution is not proven to be mathematically correct. // However, it has been thoroughly validated with multiple complex test cases. // // A date can be though of as a mixed-radix number (https://en.wikipedia.org/wiki/Mixed_radix). @@ -14,28 +14,9 @@ // // Second, if no fields are changed by this process, we must perform the smallest possible step forward // to find the next valid value. This involves moving forward the least significant field (second), -// taking care to advance the next significant field when the previous one overflows. This process is +// taking care to advance the next significant field when the previous one overflows. This process is // implemented in CronStateMachine.next() (fn_next.go). // -// In short, the algorithm can be summarized as follows: -// -// ┌─────────────────────────────────┐ -// │ findForward() from current date │ -// └───────────────┬─────────────────┘ -// │ -// │ -// │ -// ┌─────────▼──────────┐ -// │ Was Date updated? ├─────Yes─────────────┐ -// └─────────┬──────────┘ │ -// │ │ -// No │ -// │ │ -// ┌───────────────▼────────────────┐ ┌───▼───┐ -// │ find next() smallest timestep ├───────────► Done │ -// └────────────────────────────────┘ └───────┘ -// -// // NOTE: Some precautions must be taken as the "day" value does not have a constant radix. It depends // on the month and the year. January always has 30 days, while February 2024 has 29. This is taken into account // by the DayNode struct (day_node.go) and CronStateMachine.next() (fn_next.go).