validateTimeWindowIsSet validates that the time window is set
(tw *TimeWindow)
| 253 | |
| 254 | // validateTimeWindowIsSet validates that the time window is set |
| 255 | func validateTimeWindowIsSet(tw *TimeWindow) error { |
| 256 | // Check if time window is set |
| 257 | if tw == nil { |
| 258 | return fmt.Errorf("time window is required") |
| 259 | } |
| 260 | |
| 261 | // Validate time window |
| 262 | return tw.Validate() |
| 263 | } |
no test coverage detected