diff options
Diffstat (limited to 'lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb')
-rw-r--r-- | lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb b/lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb index 8b9ca0fc220..d6e05f30a0d 100644 --- a/lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb +++ b/lib/gitlab/usage_data_counters/kubernetes_agent_counter.rb @@ -8,6 +8,8 @@ module Gitlab class << self def increment_event_counts(events) + return unless events.present? + validate!(events) events.each do |event, incr| |