- Fix issue #94

- Fix linter
- Remove useless code/deadcode
This commit is contained in:
Nicolas JUHEL
2021-04-13 13:08:49 +02:00
parent 499b5ee613
commit dbb443eb65
48 changed files with 673 additions and 1418 deletions

View File

@@ -60,7 +60,7 @@ func (r *DefaultReturn) SetError(code int, msg string, file string, line int) {
}
func (r *DefaultReturn) AddParent(code int, msg string, file string, line int) {
return
// nothing
}
func (r DefaultReturn) JSON() []byte {
@@ -89,6 +89,7 @@ func (r DefaultReturn) GinTonicErrorAbort(ctx *gin.Context, httpCode int) {
}
ctx.Errors = append(ctx.Errors, &gin.Error{
//nolint #goerr113
Err: goErr.New(r.Message),
Type: gin.ErrorTypeAny,
})