mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-27 10:25:02 +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
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user