chore(web): remove redundant use of fmt.Sprintf
(cherry picked from commit 8e37d5cb76ac73ac800ef32edde7cb142d22b9a0)
This commit is contained in:
@ -37,7 +37,7 @@ func (c *WebHandler) UpdateWeb(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
|
||||
|
Reference in New Issue
Block a user