From 61282a3941f8660629521b13903dd89663ad21f4 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 3 Dec 2020 09:47:10 -0500 Subject: [PATCH] Cleanup a useless next unless in worker monitor There used to be a sync config action after the validate_worker method that was removed so the next unless is pointless now. --- app/models/miq_server/worker_management/monitor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_server/worker_management/monitor.rb b/app/models/miq_server/worker_management/monitor.rb index 21471ec7f51..0fa710c17bf 100644 --- a/app/models/miq_server/worker_management/monitor.rb +++ b/app/models/miq_server/worker_management/monitor.rb @@ -32,7 +32,7 @@ def monitor_workers # Push the heartbeat into the database persist_last_heartbeat(worker) # Check the worker record for heartbeat timeouts - next unless validate_worker(worker) + validate_worker(worker) end do_system_limit_exceeded if self.kill_workers_due_to_resources_exhausted?