1
0

chore(web): remove redundant use of fmt.Sprintf

(cherry picked from commit 8e37d5cb76ac73ac800ef32edde7cb142d22b9a0)
This commit is contained in:
kolaente
2024-08-29 16:28:37 +02:00
parent 5768648760
commit 459c8daed6
5 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
if errors.As(err, &he) {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid model provided. Error was: %s", he.Message))
}
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid model provided."))
return echo.NewHTTPError(http.StatusBadRequest, "Invalid model provided.")
}
// Validate the struct