Added new checks (#2)
* added gocyclo-check * Added new tests to drone * Added new checks to makefile
This commit is contained in:
parent
b912ff4176
commit
e724aeb206
9 changed files with 34 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
|
|||
return echo.NewHTTPError(http.StatusNotFound, "This namespace does not exist.")
|
||||
}
|
||||
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "An error occured.")
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "An error occurred.")
|
||||
}
|
||||
|
||||
return ctx.JSON(http.StatusOK, lists)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ func (c *WebHandler) ReadOneWeb(ctx echo.Context) error {
|
|||
return echo.NewHTTPError(http.StatusNotFound)
|
||||
}
|
||||
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "An error occured.")
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "An error occurred.")
|
||||
}
|
||||
|
||||
// Check rights
|
||||
|
|
|
|||
Reference in a new issue