From 6c37d3db9ba15c7ef03931b29f46b8338f37ec27 Mon Sep 17 00:00:00 2001
From: Douwe Maan <douwe@selenight.nl>
Date: Wed, 22 Feb 2017 15:26:32 -0600
Subject: [PATCH] Fix incorrect rubocop autocorrects

---
 app/workers/elastic_indexer_worker.rb | 2 +-
 lib/gitlab/middleware/readonly_geo.rb | 2 +-
 lib/gitlab/sidekiq_cluster.rb         | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/workers/elastic_indexer_worker.rb b/app/workers/elastic_indexer_worker.rb
index 9d762e881f5fb..c949d5584ad97 100644
--- a/app/workers/elastic_indexer_worker.rb
+++ b/app/workers/elastic_indexer_worker.rb
@@ -5,7 +5,7 @@ class ElasticIndexerWorker
 
   sidekiq_options queue: :elasticsearch, retry: 2
 
-  ISSUE_TRACKED_FIELDS = [%w(assignee_id author_id confidential)].freeze
+  ISSUE_TRACKED_FIELDS = %w(assignee_id author_id confidential).freeze
 
   def perform(operation, class_name, record_id, options = {})
     return true unless current_application_settings.elasticsearch_indexing?
diff --git a/lib/gitlab/middleware/readonly_geo.rb b/lib/gitlab/middleware/readonly_geo.rb
index c5fbe578d4958..a3d1e2b4fc6c1 100644
--- a/lib/gitlab/middleware/readonly_geo.rb
+++ b/lib/gitlab/middleware/readonly_geo.rb
@@ -1,7 +1,7 @@
 module Gitlab
   module Middleware
     class ReadonlyGeo
-      DISALLOWED_METHODS = [%w(POST PATCH PUT DELETE)].freeze
+      DISALLOWED_METHODS = %w(POST PATCH PUT DELETE).freeze
       APPLICATION_JSON = 'application/json'.freeze
       API_VERSIONS = (3..4)
 
diff --git a/lib/gitlab/sidekiq_cluster.rb b/lib/gitlab/sidekiq_cluster.rb
index b053176a4bdcb..1a94c456c5c45 100644
--- a/lib/gitlab/sidekiq_cluster.rb
+++ b/lib/gitlab/sidekiq_cluster.rb
@@ -1,10 +1,10 @@
 module Gitlab
   module SidekiqCluster
     # The signals that should terminate both the master and workers.
-    TERMINATE_SIGNALS = [%i(INT TERM)].freeze
+    TERMINATE_SIGNALS = %i(INT TERM).freeze
 
     # The signals that should simply be forwarded to the workers.
-    FORWARD_SIGNALS = [%i(TTIN USR1 USR2 HUP)].freeze
+    FORWARD_SIGNALS = %i(TTIN USR1 USR2 HUP).freeze
 
     # Traps the given signals and yields the block whenever these signals are
     # received.
-- 
GitLab