pstuifzand/ekster

View on GitHub
pkg/sse/events.go

Summary

Maintainability
A
40 mins
Test Coverage

Function WriteMessages has 6 return statements (exceeds 4 allowed).
Open

func WriteMessages(w http.ResponseWriter, messageChan chan Message) error {
    // Make sure that the writer supports flushing.
    flusher, ok := w.(http.Flusher)
    if !ok {
        return fmt.Errorf("streaming unsupported")
Severity: Major
Found in pkg/sse/events.go - About 40 mins to fix

There are no issues that match your filters.

Category
Status