(value)
| 306 | }; |
| 307 | |
| 308 | function normalizeAutoRunDelayMinutes(value) { |
| 309 | const numeric = Number(value); |
| 310 | if (!Number.isFinite(numeric)) { |
| 311 | return PERSISTED_SETTING_DEFAULTS.autoRunDelayMinutes; |
| 312 | } |
| 313 | return Math.min( |
| 314 | AUTO_RUN_DELAY_MAX_MINUTES, |
| 315 | Math.max(AUTO_RUN_DELAY_MIN_MINUTES, Math.floor(numeric)) |
| 316 | ); |
| 317 | } |
| 318 | |
| 319 | function normalizeAutoRunFallbackThreadIntervalMinutes(value) { |
| 320 | const rawValue = String(value ?? '').trim(); |
no outgoing calls
no test coverage detected