diff --git a/cmd/mattermost/commands/webhook.go b/cmd/mattermost/commands/webhook.go index d2a60bed86..dbe292e726 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 {