Skip to content

Commit 67f96af

Browse files
committed
Changed to errors.New
1 parent fbe9df1 commit 67f96af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/v1/stream/stream.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (r *Repos) FindStream(c echo.Context) error {
248248
}
249249

250250
if findEndpoint.EndpointID == 0 && (len(findEndpoint.Application) == 0 || len(findEndpoint.Name) == 0) {
251-
err = fmt.Errorf("failed to bind to request json: missing application, name or endpoint id")
251+
err = errors.New("failed to bind to request json: missing application, name or endpoint id")
252252
return echo.NewHTTPError(http.StatusBadRequest, err)
253253
}
254254

0 commit comments

Comments
 (0)