diff --git a/app/workers/elastic_indexer_worker.rb b/app/workers/elastic_indexer_worker.rb
index 9d762e881f5fb2d65275bf3ebee61b0ebbe32e9c..c949d5584ad97da31478da673601a557d61ea115 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 c5fbe578d495881f823816117eb1a5819409b669..a3d1e2b4fc6c1e5f8c87e61afe3edbb4022829d5 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 b053176a4bdcb249379ad8f39a1602b873892e64..1a94c456c5c45bfa882bd797e796515769372edb 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.