mirror of
https://github.com/mpolden/echoip.git
synced 2025-02-05 14:55:05 +01:00
Remove unused methods
This commit is contained in:
parent
837a32db56
commit
5e2c67573c
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user