mirror of
https://github.com/mpolden/echoip.git
synced 2025-08-12 02:51:45 +02:00
Remove unused methods
This commit is contained in:
10
api/error.go
10
api/error.go
@@ -30,21 +30,11 @@ func (e *appError) AsJSON() *appError {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *appError) WithCode(code int) *appError {
|
|
||||||
e.Code = code
|
|
||||||
return e
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *appError) WithMessage(message string) *appError {
|
func (e *appError) WithMessage(message string) *appError {
|
||||||
e.Message = message
|
e.Message = message
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *appError) WithError(err error) *appError {
|
|
||||||
e.Error = err
|
|
||||||
return e
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *appError) IsJSON() bool {
|
func (e *appError) IsJSON() bool {
|
||||||
return e.ContentType == APPLICATION_JSON
|
return e.ContentType == APPLICATION_JSON
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user