Fix shadowed variables in various places: Part 2 of 2 (#10176)

This PR fixes shadowed variables in the following packages:
- `app`
- `utils`
- `utils/markdown`
- `services/mailservice`
Этот коммит содержится в:
Hanzei
2019-01-28 21:57:45 +01:00
коммит произвёл GitHub
родитель 58b2a3d16e
Коммит 179e98c245
7 изменённых файлов: 26 добавлений и 22 удалений

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

@@ -134,9 +134,11 @@ func (a *App) deduplicateCreatePost(post *model.Post) (foundPost *model.Post, er
}
func (a *App) CreatePost(post *model.Post, channel *model.Channel, triggerWebhooks bool) (savedPost *model.Post, err *model.AppError) {
if foundPost, err := a.deduplicateCreatePost(post); err != nil {
foundPost, err := a.deduplicateCreatePost(post)
if err != nil {
return nil, err
} else if foundPost != nil {
}
if foundPost != nil {
return foundPost, nil
}