Remove unused err field from request.Context (#24471)

Этот коммит содержится в:
Ben Schumacher
2023-09-07 12:12:25 +02:00
коммит произвёл GitHub
родитель 5f868e2469
Коммит c656ca3fe3

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

@@ -21,7 +21,6 @@ type Context struct {
userAgent string userAgent string
acceptLanguage string acceptLanguage string
logger mlog.LoggerIFace logger mlog.LoggerIFace
err *model.AppError
context context.Context context context.Context
} }
@@ -117,14 +116,6 @@ func (c *Context) Logger() mlog.LoggerIFace {
return c.logger return c.logger
} }
func (c *Context) SetAppError(err *model.AppError) {
c.err = err
}
func (c *Context) AppError() *model.AppError {
return c.err
}
type CTX interface { type CTX interface {
T(string, ...interface{}) string T(string, ...interface{}) string
Session() *model.Session Session() *model.Session
@@ -146,6 +137,4 @@ type CTX interface {
GetT() i18n.TranslateFunc GetT() i18n.TranslateFunc
SetLogger(mlog.LoggerIFace) SetLogger(mlog.LoggerIFace)
Logger() mlog.LoggerIFace Logger() mlog.LoggerIFace
SetAppError(*model.AppError)
AppError() *model.AppError
} }