summaryrefslogtreecommitdiff
path: root/app/services/slash_commands
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-18 14:21:52 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-18 14:29:49 -0500
commit2703330a19e813351e9c33241a59d6b7f54741df (patch)
tree0caa4c5a119b165fd4fe9e3712f0de5caffa403e /app/services/slash_commands
parent6f2f2a6baae128cd4f8111d91bdcfb7b76e39b97 (diff)
downloadgitlab-ce-2703330a19e813351e9c33241a59d6b7f54741df.tar.gz
Fix behavior around commands with optional arguments4273-slash-commands
Diffstat (limited to 'app/services/slash_commands')
-rw-r--r--app/services/slash_commands/interpret_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/slash_commands/interpret_service.rb b/app/services/slash_commands/interpret_service.rb
index 0d7838055fe..9ac1124abc1 100644
--- a/app/services/slash_commands/interpret_service.rb
+++ b/app/services/slash_commands/interpret_service.rb
@@ -18,11 +18,11 @@ module SlashCommands
content, commands = extractor.extract_commands(content, opts)
- commands.each do |name, args|
+ commands.each do |name, arg|
definition = self.class.command_definitions_by_name[name.to_sym]
next unless definition
- definition.execute(self, opts, args)
+ definition.execute(self, opts, arg)
end
[content, @updates]