Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2020-11-12 03:10:29 +0300
committerEvan Read <eread@gitlab.com>2020-11-12 03:19:47 +0300
commitb4de291fbf9660dbfe92371bdddaf59cb3b568c6 (patch)
tree39841e4204f78260c81ddfb1ff3c253af735ae0b /lib/task_helpers.rb
parent6d249b461169aae4e66c584fa9b1e1621603332f (diff)
Fix more Rubocop problems
Diffstat (limited to 'lib/task_helpers.rb')
-rw-r--r--lib/task_helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb
index be79af49..8a8735f5 100644
--- a/lib/task_helpers.rb
+++ b/lib/task_helpers.rb
@@ -1,7 +1,7 @@
require 'yaml'
-PRODUCTS = %W[ee omnibus runner charts].freeze
-VERSION_FORMAT = /^(?<major>\d{1,2})\.(?<minor>\d{1,2})$/
+PRODUCTS = %w[ee omnibus runner charts].freeze
+VERSION_FORMAT = /^(?<major>\d{1,2})\.(?<minor>\d{1,2})$/.freeze
def config
# Parse the config file and create a hash.
@@ -13,7 +13,7 @@ def products
# Pull products data from the config.
@products = PRODUCTS.each_with_object({}) do |key, result|
- result[key] = config['products'][key]
+ result[key] = config['products'][key]
end
end