grokify/mogo

View on GitHub
net/netutil/connection.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ModifyConnectionRequest has 5 return statements (exceeds 4 allowed).
Open

func ModifyConnectionRequest(conn net.Conn, modRequest func(r *http.Request) error) error {
    // Code adapted from: https://stackoverflow.com/a/76684845/1908967
    if conn == nil {
        return errors.New("net.Conn cannot be nil")
    }
Severity: Major
Found in net/netutil/connection.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status