Fix: Skip SkipSpeedtestJob when env var is empty (#2626)

Co-authored-by: Alex Justesen <alexjustesen@users.noreply.github.com>
This commit is contained in:
Sven van Ginkel
2026-01-03 14:14:31 +01:00
committed by GitHub
parent 07aaf84a4b
commit d0377e15a7
+2 -2
View File
@@ -40,9 +40,9 @@ class SkipSpeedtestJob implements ShouldQueue
public function handle(): void
{
/**
* Only skip IPs for scheduled tests.
* Skip if test is not scheduled or no IPs are configured to skip.
*/
if ($this->result->scheduled === false) {
if ($this->result->scheduled === false || empty(config('speedtest.preflight.skip_ips'))) {
return;
}