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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2d0f5f910a
Коммит
ccc7365ac3
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user