mirror of https://github.com/mpolden/echoip
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
|
||||
}
|
||||
|
||||
func (e *appError) WithCode(code int) *appError {
|
||||
e.Code = code
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *appError) WithMessage(message string) *appError {
|
||||
e.Message = message
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *appError) WithError(err error) *appError {
|
||||
e.Error = err
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *appError) IsJSON() bool {
|
||||
return e.ContentType == APPLICATION_JSON
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue