Fix inconsistencies in variable names for struct methods (#13561)

Этот коммит содержится в:
Jesús Espino
2020-01-07 10:47:03 +01:00
коммит произвёл GitHub
родитель d8ac09b302
Коммит 092e53ace2
22 изменённых файлов: 391 добавлений и 391 удалений

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

@@ -364,25 +364,25 @@ func (o *Post) IsJoinLeaveMessage() bool {
o.Type == POST_REMOVE_FROM_TEAM
}
func (p *Post) Patch(patch *PostPatch) {
func (o *Post) Patch(patch *PostPatch) {
if patch.IsPinned != nil {
p.IsPinned = *patch.IsPinned
o.IsPinned = *patch.IsPinned
}
if patch.Message != nil {
p.Message = *patch.Message
o.Message = *patch.Message
}
if patch.Props != nil {
p.Props = *patch.Props
o.Props = *patch.Props
}
if patch.FileIds != nil {
p.FileIds = *patch.FileIds
o.FileIds = *patch.FileIds
}
if patch.HasReactions != nil {
p.HasReactions = *patch.HasReactions
o.HasReactions = *patch.HasReactions
}
}