summaryrefslogtreecommitdiff
path: root/lib/mattermost
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mattermost')
-rw-r--r--lib/mattermost/presenter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mattermost/presenter.rb b/lib/mattermost/presenter.rb
index 8ecab01a359..6b12081575d 100644
--- a/lib/mattermost/presenter.rb
+++ b/lib/mattermost/presenter.rb
@@ -30,9 +30,9 @@ module Mattermost
if subject.is_a?(Gitlab::ChatCommands::Result)
show_result(subject)
elsif subject.respond_to?(:count)
- if subject.try(:many?)
+ if subject.many?
multiple_resources(subject)
- elsif subject.count == 0
+ elsif subject.none?
not_found
else
single_resource(subject)