[MM-17219] Return an empty list instead of null when no teams (#11904)

Этот коммит содержится в:
Miguel de la Cruz
2019-09-06 13:12:32 +02:00
коммит произвёл GitHub
родитель 2719c781ed
Коммит 1a9a2b1430

Просмотреть файл

@@ -729,7 +729,7 @@ func updateTeamMemberSchemeRoles(c *Context, w http.ResponseWriter, r *http.Requ
}
func getAllTeams(c *Context, w http.ResponseWriter, r *http.Request) {
var teams []*model.Team
teams := []*model.Team{}
var err *model.AppError
var teamsWithCount *model.TeamsWithCount