Bump golangci version to v1.38.0 (#17154)

* Update golangci to v1.38.0

Co-authored-by: Claudio Costa <cstcld91@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Haardik Dharma
2021-04-28 20:13:41 +05:30
коммит произвёл GitHub
родитель 2d0f5f910a
Коммит ccc7365ac3
20 изменённых файлов: 28 добавлений и 24 удалений

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

@@ -585,8 +585,7 @@ func (a *App) UpdatePost(post *model.Post, safeUpdate bool) (*model.Post, *model
return nil, model.NewAppError("UpdatePost", "api.post.update_post.can_not_update_post_in_deleted.error", nil, "", http.StatusBadRequest)
}
newPost := &model.Post{}
newPost = oldPost.Clone()
newPost := oldPost.Clone()
if newPost.Message != post.Message {
newPost.Message = post.Message