summaryrefslogtreecommitdiff
path: root/app/services/quick_actions
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-07-28 23:04:26 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 16:45:11 +0200
commit19f97d2a0fe16b905f95dc17480fdbbfba4654d7 (patch)
tree4f3541e7561b65d46511fb672c2b883c366b8254 /app/services/quick_actions
parentc491d86473c55a58811e22ab73e02a22ba216e84 (diff)
downloadgitlab-ce-19f97d2a0fe16b905f95dc17480fdbbfba4654d7.tar.gz
No need to destruct block arguments
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r--app/services/quick_actions/interpret_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb
index 09f39523c35..d84da989924 100644
--- a/app/services/quick_actions/interpret_service.rb
+++ b/app/services/quick_actions/interpret_service.rb
@@ -583,7 +583,7 @@ module QuickActions
end
desc 'Tag this commit.'
- explanation do |(tag_name, message)|
+ explanation do |tag_name, message|
with_message = %{ with "#{message}"} if message.present?
"Tags this commit to #{tag_name}#{with_message}."
end
@@ -594,7 +594,7 @@ module QuickActions
condition do
issuable.is_a?(Commit) && current_user.can?(:push_code, project)
end
- command :tag do |(tag_name, message)|
+ command :tag do |tag_name, message|
@updates[:tag_name] = tag_name
@updates[:tag_message] = message
end