pkg/refactor/api/events.go
Function sseHandlefunc
has 7 return statements (exceeds 4 allowed). Open
Open
func sseHandlefunc(ctx context.Context, r *http.Request, c *eventsController, cursorTime time.Time, params []string) ([]CoursoredEvent, error) {
ns := chi.URLParam(r, "namespace")
if ns == "" {
return nil, fmt.Errorf("namespace can not be empty")
}
Function sseHandlefunc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func sseHandlefunc(ctx context.Context, r *http.Request, c *eventsController, cursorTime time.Time, params []string) ([]CoursoredEvent, error) {