[MM-55409] Enable revive linter on enterprise code (#25391)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8e84adb176
Коммит
612e4458ef
@@ -232,7 +232,7 @@ func (a *App) WriteExportFile(fr io.Reader, path string) (int64, *model.AppError
|
||||
|
||||
func writeFileContext(ctx context.Context, backend filestore.FileBackend, fr io.Reader, path string) (int64, *model.AppError) {
|
||||
// Check if we can provide a custom context, otherwise just use the default method.
|
||||
written, err := filestore.TryWriteFileContext(backend, ctx, fr, path)
|
||||
written, err := filestore.TryWriteFileContext(ctx, backend, fr, path)
|
||||
if err != nil {
|
||||
return written, model.NewAppError("WriteFile", "api.file.write_file.app_error", nil, "", http.StatusInternalServerError).Wrap(err)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user