From 0a68e741d07d086ca3a94c73a958cb9fa3c50943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 5 Oct 2018 16:40:26 +0200 Subject: Small fix in the webhook list error handling (#9567) --- cmd/mattermost/commands/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 { -- cgit v1.2.3-1-g7c22