diff options
author | Mark Chao <mchao@gitlab.com> | 2019-08-08 16:43:16 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2019-08-08 17:40:06 +0800 |
commit | 842eac7bd0e6436f55ea08f1f4d832b168f1e55b (patch) | |
tree | f28f44032118d02c5b1ed23f2b8bee08c9d62402 | |
parent | 07c6a799cbc8714c015c5e96733b3438953a11a0 (diff) | |
download | gitlab-ce-63888-snippets-usage-ping-for-create-smau.tar.gz |
Remove unnecessary freeze63888-snippets-usage-ping-for-create-smau
-rw-r--r-- | lib/gitlab/usage_data_counters/note_counter.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/usage_data_counters/snippet_counter.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/usage_data_counters/wiki_page_counter.rb | 2 |
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 |