* Fix scopelint issues

* Incorporating review comments

* Keeping the order of linters alphabetical

* Fix issues after merge

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2020-03-13 08:44:39 +05:30
коммит произвёл GitHub
родитель 4ac0619c90
Коммит c8b60c2d75
7 изменённых файлов: 22 добавлений и 2 удалений

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

@@ -434,12 +434,14 @@ func validatePostImportData(data *PostImportData, maxPostSize int) *model.AppErr
if data.Reactions != nil {
for _, reaction := range *data.Reactions {
reaction := reaction
validateReactionImportData(&reaction, *data.CreateAt)
}
}
if data.Replies != nil {
for _, reply := range *data.Replies {
reply := reply
validateReplyImportData(&reply, *data.CreateAt, maxPostSize)
}
}
@@ -528,12 +530,14 @@ func validateDirectPostImportData(data *DirectPostImportData, maxPostSize int) *
if data.Reactions != nil {
for _, reaction := range *data.Reactions {
reaction := reaction
validateReactionImportData(&reaction, *data.CreateAt)
}
}
if data.Replies != nil {
for _, reply := range *data.Replies {
reply := reply
validateReplyImportData(&reply, *data.CreateAt, maxPostSize)
}
}