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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/push_options.rb')
-rw-r--r--lib/gitlab/push_options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/push_options.rb b/lib/gitlab/push_options.rb
index 8a1dcc083e8..28d195238ea 100644
--- a/lib/gitlab/push_options.rb
+++ b/lib/gitlab/push_options.rb
@@ -46,8 +46,8 @@ module Gitlab
@options = parse_options(options)
end
- def get(*args)
- options.dig(*args)
+ def get(...)
+ options.dig(...)
end
# Allow #to_json serialization
@@ -83,7 +83,7 @@ module Gitlab
end
def option_multi_value?(namespace, key)
- MULTI_VALUE_OPTIONS.any? { |arr| arr == [namespace, key] }
+ MULTI_VALUE_OPTIONS.any?([namespace, key])
end
def parse_option(option)