Remove redundant error wrapper

This commit is contained in:
Kailash Nadh 2018-12-26 15:38:08 +05:30
parent 08bc6bc67c
commit 46f4a0e2aa

View file

@ -133,7 +133,7 @@ func handleCreateTemplate(c echo.Context) error {
)
if err := c.Bind(&o); err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
return err
}
if err := validateTemplate(o); err != nil {