MM-31061: Remove pointers to slice (#16631)

* MM-31061: Remove pointers to slice

This PR removes instances of pointers
to slices in the codebase. There are some other instances in app/import_functions.go
but that's necessary to prevent empty arrays from appearing in the JSON output.

```release-note
NONE
```

https://mattermost.atlassian.net/browse/MM-31061

* fix tests
Этот коммит содержится в:
Agniva De Sarker
2021-01-06 21:23:00 +05:30
коммит произвёл GitHub
родитель 037ce8bc31
Коммит 09d2f698cc
6 изменённых файлов: 39 добавлений и 18 удалений

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

@@ -218,7 +218,7 @@ func (a *App) ListDirectory(path string) ([]string, *model.AppError) {
return nil, model.NewAppError("ListDirectory", "api.file.list_directory.app_error", nil, nErr.Error(), http.StatusInternalServerError)
}
return *paths, nil
return paths, nil
}
func (a *App) RemoveDirectory(path string) *model.AppError {