summaryrefslogtreecommitdiff
path: root/lib/mattermost
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-11-18 13:29:47 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-18 14:23:26 +0100
commitc72c76fde3882b7c2f778bf85132cd2c80f01f5b (patch)
tree00c937023d319a7c65efff1bf23f2238be142d57 /lib/mattermost
parentdd826a5f20837f33263c658e41a4def0fc932069 (diff)
downloadgitlab-ce-c72c76fde3882b7c2f778bf85132cd2c80f01f5b.tar.gz
Fix typos
Diffstat (limited to 'lib/mattermost')
-rw-r--r--lib/mattermost/presenter.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mattermost/presenter.rb b/lib/mattermost/presenter.rb
index f76d0376a98..bfbb089eb02 100644
--- a/lib/mattermost/presenter.rb
+++ b/lib/mattermost/presenter.rb
@@ -14,9 +14,10 @@ module Mattermost
end
def help(commands, trigger)
- if commands.zero?
+ if commands.none?
ephemeral_response("No commands configured")
else
+ commands.map! { |command| "#{trigger} #{command}" }
message = header_with_list("Available commands", commands)
ephemeral_response(message)
@@ -46,7 +47,7 @@ module Mattermost
private
def not_found
- ephemeral_response("404 not found! GitLab couldn't find what your were looking for! :boom:")
+ ephemeral_response("404 not found! GitLab couldn't find what you were looking for! :boom:")
end
def single_resource(resource)
@@ -67,7 +68,7 @@ module Mattermost
end
def error(resource)
- message = header_with_list("The action was not succesful, because:", resource.errors.messages)
+ message = header_with_list("The action was not successful, because:", resource.errors.messages)
ephemeral_response(message)
end