summaryrefslogtreecommitdiff
path: root/lib/gitlab/cluster/lifecycle_events.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/cluster/lifecycle_events.rb')
-rw-r--r--lib/gitlab/cluster/lifecycle_events.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/cluster/lifecycle_events.rb b/lib/gitlab/cluster/lifecycle_events.rb
index b9fe5b00474..97aeed2fa9f 100644
--- a/lib/gitlab/cluster/lifecycle_events.rb
+++ b/lib/gitlab/cluster/lifecycle_events.rb
@@ -36,7 +36,7 @@ module Gitlab
# Signal worker_start event
# This should be called from unicorn/puma/etc lifecycle hooks
def self.signal_worker_start
- @worker_start_listeners && @worker_start_listeners.each do |block|
+ @worker_start_listeners&.each do |block|
block.call
end
end
@@ -44,7 +44,7 @@ module Gitlab
# Signal before_fork event
# This should be called from unicorn/puma/etc lifecycle hooks
def self.signal_before_fork
- @before_fork_listeners && @before_fork_listeners.each do |block|
+ @before_fork_listeners&.each do |block|
block.call
end
end