diff options
Diffstat (limited to 'app/team.go')
-rw-r--r-- | app/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/team.go b/app/team.go index d8ebbab2a..2833e2eed 100644 --- a/app/team.go +++ b/app/team.go @@ -1057,7 +1057,7 @@ func (a *App) SetTeamIconFromFile(teamId string, file multipart.File) *model.App path := "teams/" + teamId + "/teamIcon.png" - if err := a.WriteFile(buf.Bytes(), path); err != nil { + if _, err := a.WriteFile(buf, path); err != nil { return model.NewAppError("SetTeamIcon", "api.team.set_team_icon.write_file.app_error", nil, "", http.StatusInternalServerError) } |