Skip to content

Commit

Permalink
Merge pull request #20862 from agrare/fix_useless_next_unless_worker_…
Browse files Browse the repository at this point in the history
…validate

Cleanup a useless next unless in worker monitor
  • Loading branch information
jrafanie authored Dec 3, 2020
2 parents a6947b8 + 61282a3 commit 0575f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_server/worker_management/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 0575f8b

Please sign in to comment.