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:
authorDouwe Maan <douwe@selenight.nl>2016-08-18 22:21:52 +0300
committerDouwe Maan <douwe@selenight.nl>2016-08-18 22:29:49 +0300
commit2703330a19e813351e9c33241a59d6b7f54741df (patch)
tree0caa4c5a119b165fd4fe9e3712f0de5caffa403e /app/services
parent6f2f2a6baae128cd4f8111d91bdcfb7b76e39b97 (diff)
Fix behavior around commands with optional arguments
Diffstat (limited to 'app/services')
-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]