rearange code

This commit is contained in:
cubicroot 2022-04-23 20:14:23 +02:00
parent 6a0c7dc7c9
commit 101db63649
7 changed files with 91 additions and 104 deletions

View file

@ -10,7 +10,7 @@ import (
"github.com/gin-gonic/gin"
)
func successOrAbort(ctx *gin.Context, code int, err error) bool {
func SuccessOrAbort(ctx *gin.Context, code int, err error) bool {
if err != nil {
// If we know the error force error code
switch err {