diff options
author | Evan Read <eread@gitlab.com> | 2020-11-12 03:10:29 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-11-12 03:19:47 +0300 |
commit | b4de291fbf9660dbfe92371bdddaf59cb3b568c6 (patch) | |
tree | 39841e4204f78260c81ddfb1ff3c253af735ae0b /lib/task_helpers.rb | |
parent | 6d249b461169aae4e66c584fa9b1e1621603332f (diff) |
Fix more Rubocop problems
Diffstat (limited to 'lib/task_helpers.rb')
-rw-r--r-- | lib/task_helpers.rb | 6 |
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 |