Removing some unneded FakeApp instance (#14139)

Этот коммит содержится в:
Jesús Espino
2020-03-27 14:52:57 +01:00
коммит произвёл GitHub
родитель cfe65a33a5
Коммит 9a531fa0fb
8 изменённых файлов: 85 добавлений и 92 удалений

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

@@ -69,8 +69,7 @@ const (
)
func (a *App) FileBackend() (filesstore.FileBackend, *model.AppError) {
license := a.License()
return filesstore.NewFileBackend(&a.Config().FileSettings, license != nil && *license.Features.Compliance)
return a.Srv().FileBackend()
}
func (a *App) ReadFile(path string) ([]byte, *model.AppError) {