diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb index 054a6070bb8..d2e626c22e8 100644 --- a/app/models/cycle_analytics.rb +++ b/app/models/cycle_analytics.rb @@ -17,7 +17,7 @@ class CycleAnalytics end def no_stats? - stats.all? { hash[:value].nil? } + stats.all? { |hash| hash[:value].nil? } end def permissions(user:) diff --git a/lib/gitlab/cycle_analytics/base_stage.rb b/lib/gitlab/cycle_analytics/base_stage.rb index 7ff15051558..74bbcdcb3dd 100644 --- a/lib/gitlab/cycle_analytics/base_stage.rb +++ b/lib/gitlab/cycle_analytics/base_stage.rb @@ -42,8 +42,8 @@ module Gitlab def event_fetcher @event_fetcher ||= Gitlab::CycleAnalytics::EventFetcher[name].new(project: @project, - stage: name, - options: event_options) + stage: name, + options: event_options) end def event_options