summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2019-08-08 16:43:16 +0800
committerMark Chao <mchao@gitlab.com>2019-08-08 17:40:06 +0800
commit842eac7bd0e6436f55ea08f1f4d832b168f1e55b (patch)
treef28f44032118d02c5b1ed23f2b8bee08c9d62402
parent07c6a799cbc8714c015c5e96733b3438953a11a0 (diff)
downloadgitlab-ce-63888-snippets-usage-ping-for-create-smau.tar.gz
-rw-r--r--lib/gitlab/usage_data_counters/note_counter.rb2
-rw-r--r--lib/gitlab/usage_data_counters/snippet_counter.rb2
-rw-r--r--lib/gitlab/usage_data_counters/wiki_page_counter.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/usage_data_counters/note_counter.rb b/lib/gitlab/usage_data_counters/note_counter.rb
index 98af1e24c02..e93a0bcfa27 100644
--- a/lib/gitlab/usage_data_counters/note_counter.rb
+++ b/lib/gitlab/usage_data_counters/note_counter.rb
@@ -2,7 +2,7 @@
module Gitlab::UsageDataCounters
class NoteCounter < BaseCounter
- KNOWN_EVENTS = %w[create].map(&:freeze).freeze
+ KNOWN_EVENTS = %w[create].freeze
PREFIX = 'note'
COUNTABLE_TYPES = %w[Snippet].freeze
diff --git a/lib/gitlab/usage_data_counters/snippet_counter.rb b/lib/gitlab/usage_data_counters/snippet_counter.rb
index c3022c5d027..e4d234ce4d9 100644
--- a/lib/gitlab/usage_data_counters/snippet_counter.rb
+++ b/lib/gitlab/usage_data_counters/snippet_counter.rb
@@ -2,7 +2,7 @@
module Gitlab::UsageDataCounters
class SnippetCounter < BaseCounter
- KNOWN_EVENTS = %w[create update].map(&:freeze).freeze
+ KNOWN_EVENTS = %w[create update].freeze
PREFIX = 'snippet'
end
end
diff --git a/lib/gitlab/usage_data_counters/wiki_page_counter.rb b/lib/gitlab/usage_data_counters/wiki_page_counter.rb
index 4f3cc37efb8..9cfe0be5bab 100644
--- a/lib/gitlab/usage_data_counters/wiki_page_counter.rb
+++ b/lib/gitlab/usage_data_counters/wiki_page_counter.rb
@@ -2,7 +2,7 @@
module Gitlab::UsageDataCounters
class WikiPageCounter < BaseCounter
- KNOWN_EVENTS = %w[create update delete].map(&:freeze).freeze
+ KNOWN_EVENTS = %w[create update delete].freeze
PREFIX = 'wiki_pages'
end
end