api/http/handler/endpoints/endpoint_snapshot.go
Method Handler.endpointSnapshot
has 7 return statements (exceeds 4 allowed). Open
Open
func (handler *Handler) endpointSnapshot(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
endpointID, err := request.RetrieveNumericRouteVariableValue(r, "id")
if err != nil {
return httperror.BadRequest("Invalid environment identifier route variable", err)
}