mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
[MM-57415] Removed unused IsOAuth field from AppError (#26578)
This commit is contained in:
parent
ed58b10486
commit
d2ce70b4b1
2 changed files with 0 additions and 3 deletions
|
|
@ -404,7 +404,6 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
c.Err.WipeDetailed()
|
||||
c.Err.StatusCode = 500
|
||||
c.Err.Where = ""
|
||||
c.Err.IsOAuth = false
|
||||
}
|
||||
|
||||
if IsAPICall(c.App, r) || IsWebhookCall(c.App, r) || IsOAuthAPICall(c.App, r) || r.Header.Get("X-Mobile-App") != "" {
|
||||
|
|
|
|||
|
|
@ -235,7 +235,6 @@ type AppError struct {
|
|||
RequestId string `json:"request_id,omitempty"` // The RequestId that's also set in the header
|
||||
StatusCode int `json:"status_code,omitempty"` // The http status code
|
||||
Where string `json:"-"` // The function where it happened in the form of Struct.Func
|
||||
IsOAuth bool `json:"is_oauth,omitempty"` // Whether the error is OAuth specific
|
||||
SkipTranslation bool `json:"-"` // Whether translation for the error should be skipped.
|
||||
params map[string]any
|
||||
wrapped error
|
||||
|
|
@ -370,7 +369,6 @@ func NewAppError(where string, id string, params map[string]any, details string,
|
|||
Where: where,
|
||||
DetailedError: details,
|
||||
StatusCode: status,
|
||||
IsOAuth: false,
|
||||
}
|
||||
ap.Translate(translateFunc)
|
||||
return ap
|
||||
|
|
|
|||
Loading…
Reference in a new issue