[MM-56284] Remove non-generic StoreResult (#25750)

Этот коммит содержится в:
Ben Schumacher
2024-01-04 12:30:21 +01:00
коммит произвёл GitHub
родитель 502cd6ef7d
Коммит edc305716f
12 изменённых файлов: 113 добавлений и 123 удалений

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

@@ -16,17 +16,7 @@ import (
"github.com/mattermost/mattermost/server/v8/channels/product"
)
// Deprecated: Use GenericStoreResult instead.
type StoreResult struct {
Data any
// NErr a temporary field used by the new code for the AppError migration. This will later become Err when the entire store is migrated.
NErr error
}
// GenericStoreResult is a type safe version of StoreResult.
// Once all the code is migrated to use GenericStoreResult, it should be renamed to StoreResult.
type GenericStoreResult[T any] struct {
type StoreResult[T any] struct {
Data T
// NErr a temporary field used by the new code for the AppError migration. This will later become Err when the entire store is migrated.