diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 13:29:47 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 14:23:26 +0100 |
commit | c72c76fde3882b7c2f778bf85132cd2c80f01f5b (patch) | |
tree | 00c937023d319a7c65efff1bf23f2238be142d57 /lib/mattermost | |
parent | dd826a5f20837f33263c658e41a4def0fc932069 (diff) | |
download | gitlab-ce-c72c76fde3882b7c2f778bf85132cd2c80f01f5b.tar.gz |
Fix typos
Diffstat (limited to 'lib/mattermost')
-rw-r--r-- | lib/mattermost/presenter.rb | 7 |
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 |