diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-10-05 16:40:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 16:40:26 +0200 |
commit | 0a68e741d07d086ca3a94c73a958cb9fa3c50943 (patch) | |
tree | 2e4ffe8be6bb9874c0a18a66faadd7f028368f4a /cmd/mattermost | |
parent | ee1700d6b2453fd2b4aaf236123ec383cbbdff8b (diff) | |
download | chat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.tar.gz chat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.tar.bz2 chat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.zip |
Small fix in the webhook list error handling (#9567)
Diffstat (limited to 'cmd/mattermost')
-rw-r--r-- | cmd/mattermost/commands/webhook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mattermost/commands/webhook.go b/cmd/mattermost/commands/webhook.go index d2a60bed8..dbe292e72 100644 --- a/cmd/mattermost/commands/webhook.go +++ b/cmd/mattermost/commands/webhook.go @@ -32,7 +32,7 @@ func listWebhookCmdF(command *cobra.Command, args []string) error { var teams []*model.Team if len(args) < 1 { - var getErr error + var getErr *model.AppError // If no team is specified, list all teams teams, getErr = app.GetAllTeams() if getErr != nil { |