Commit 19ef41e
authored
Watcher: Simplify finding next date in cron schedule (elastic#33015)
The code introduced in 3fa3680 to fix
an issue with crons always returning -1 was not very readable. This
implementation uses streams to improve readability.1 parent 2cc6116 commit 19ef41e
File tree
1 file changed
+8
-13
lines changed- x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/trigger/schedule
1 file changed
+8
-13
lines changedLines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
| |||
0 commit comments