summaryrefslogtreecommitdiff
path: root/lib/mattermost
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mattermost')
-rw-r--r--lib/mattermost/team.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mattermost/team.rb b/lib/mattermost/team.rb
index c1b867629b6..ea5cfd2cb0b 100644
--- a/lib/mattermost/team.rb
+++ b/lib/mattermost/team.rb
@@ -1,9 +1,7 @@
module Mattermost
class Team
def self.all(session)
- response_body = retreive_teams(session)
-
- response_body.has_key?('message') ? response_body : response_body.values
+ retreive_teams(session)
end
def self.retreive_teams(session)